开发者

Fatal error: Call to undefined method Facebook::require_add

I am trying to set up a basic Facebook application using PHP and an external .swf this line $user_id = $facebook->require_login();

creates this error:

Fatal error: Call to undefined method Facebook::require_add() in C:\httpdocs\facebook_application\index.php on line 10

I cannot find the cause of this开发者_高级运维 error...


Sounds like you're using old versions.

Download the latest 'Facebook Platform' and also make sure you have the latest PHP5.


I found out they changed everything lately.

$facebook =    
new Facebook(array(
  'appId' => 'xxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxx',
  'cookie' => true,
));      
$session = $facebook->getSession();

This one worked with the new version!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜