开发者

Fatal error: Call to undefined method Facebook::require_add

开发者 https://www.devze.com 2022-12-28 13:20 出处:网络
I am trying to set up a basic Facebook application using PHP and an external .swf this line $user_id = $facebook->require_login();

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

精彩评论

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