dongwen7813
2014-08-21 13:22
浏览 67
已采纳

facebook SDK for PHP无法使用其他帐户登录

I have an application use this to log in.

https://github.com/facebook/facebook-php-sdk

$facebook = new Facebook(array(
  'appId'  => 'XXXXXXXXXXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXXXXXXXXX',
));

I have test on my facebook account, it works fine and facebook pop up the message

My App will receive the following info: your public profile...

The problem is when I try to use different account to log in, it return nothing.

anyone know where is the problem?

url shows https://www.facebook.com/dialog/oauth? client_id=499519323487644&redirect_uri=http%3A%2F%2Fwww.mysite.com%2FfbLogin%2Fexamples%2Fexample.php&state=fe56e342043378a4afb4593d9c13372e& sdk=php-sdk-3.2.3&scope=email%2C+user_birthday

page display nothing

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dqhbuwrwq692118284 2014-08-21 14:20
    已采纳

    As you are using the user_birthday permission, your app needs to be reviewed by Facebook to be able to request this from non-admin/developer/tester users.

    Have a look at my answer here: Facebook me/feed can only post on developers account only

    In you case, there should be some kind of error message normally. check your console output.

    已采纳该答案
    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题