开发者

Facebook.php Changed?

I am making my first Facebook 开发者_运维百科App and nothing is working as stated in the documentation. As an example, I have facebook.php on my server and am calling this line:

$friends = $facebook->api_client->friends_get();

but I get a "call to undefined function friends_get()"

I see that there is no "friends_get()" function in the facebook.php. I do see there is a friends.get in that long array... but I'm not sure how to access it?


I think you have downloaded the new facebook library but trying code from the old documentation. Make sure:

  1. You have downloaded the PHP SDK from here: http://github.com/facebook/php-sdk/
  2. You are reading this guide: http://developers.facebook.com/docs/

If you are stuck, have a look at this blog post which gives a short intro to the new SDK.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜