Changes to Facebook.php?
I am making my first Facebook app and nothing works as stated in the documentation. As an example, I have facebook.php on my server and I am calling this line:
$friends = $facebook->api_client->friends_get();
but i am getting "call to undefined friends_get () function"
I see that there is no "friends_get ()" function in facebook.php. I see that there is a friends.get file in this long array, but I'm not sure how to access it?
+2
a source to share
1 answer
I think you downloaded the new facebook library, but you are trying to follow the code from the old documentation. Make sure that:
- You downloaded the PHP SDK from here: http://github.com/facebook/php-sdk/
- You are reading this tutorial: http://developers.facebook.com/docs/
If you get stuck check out this blog post which gives a quick introduction to the new SDK.
+1
a source to share