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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化