-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get events from a page "Unable to convert response from Graph to a GraphNode" #73
Comments
Yes. :) But you're really close! The So just change this: $graphObject = $response->getGraphObject(); To this: // If you have an old dev version of the official SDK
$graphEdge = $response->getGraphList();
// Or if you have the latest dev version of the official SDK
$graphEdge = $response->getGraphEdge(); |
One question I have about this is how do you request more pages after you get the first 10 results? |
I assume it is something similar to this, but I always get null. Here is what I suspect we do for paging: $response = $response->getGraphEdge(); Am I on track with this? It may be that I just dont have enough results for paging. Im not sure what the default limit is. |
@upwebdesign Yes, you would pass the results from |
I wrote below these code::: Error:: Fatal error: Call to undefined method Facebook\FacebookRequest::execute() Any suggestion please.............. |
@seetozenith you are calling the facebook SDK directly... why aren't you calling the GET request using this package's SDK wrapper? |
your not doing it wrong, all the code on facebook is missing parts for the .php the only one that works from the facebook dev is javascript and even that is missing parts they must have done it on purpose so only true developers would be able to get it going. |
Hello,
I have an issue to covert events from page-id:
$fb = App::make('SammyK\LaravelFacebookSdk\LaravelFacebookSdk');
$fb->setDefaultAccessToken('token-string-xxx');
Always same answer :
FacebookSDKException in GraphNodeFactory.php line 224:
Unable to convert response from Graph to a GraphNode because the response looks like a GraphEdge. Try using GraphNodeFactory::makeGraphEdge() instead.
I've try as you see here : https://developers.facebook.com/docs/graph-api/reference/page/events/
Do I do it wrong?
Thanks for your help.
The text was updated successfully, but these errors were encountered: