抱歉,在 SDK 3.0 上取消应用程序连接后出现问题
我正在使用新的 PHP SDK 3.0,并使用带有以下参数的新 getLoginUrl() 函数。
$paramsLogin = array(
'scope' => PERMISSIONS,
'redirect_uri' => REDIRECT_URI
);
如果用户在应用程序权限弹出窗口上单击“取消”,我会在错误页面上重定向用户,其中包含一条消息,解释他必须接受权限才能参加比赛以及一个新的登录按钮。
但是当我再次单击登录按钮时,Facebook 显示以下消息:
抱歉,出了点问题。我们正在努力解决这个问题 我们会尽快。
如果我等待一段时间,然后再次单击登录按钮,它会按预期工作。
我在某处读到 Facebook 应该在权限弹出窗口中显示“离开应用程序”而不是“取消”我想这就是问题所在。
任何人都知道如何解决该问题,或者我应该在 Facebook 上提交错误报告。
I'm using the new PHP SDK 3.0 and I use the new getLoginUrl() function with the following parameters.
$paramsLogin = array(
'scope' => PERMISSIONS,
'redirect_uri' => REDIRECT_URI
);
If the user clicks "cancel" on the application permissions popup, I redirect the user on an error page which contains a message explaining that he has to accept the permissions in order to participate to the contest and a new login button.
But when i click on the login button again, facebook displays the following message :
Sorry, something went wrong. We're working on getting this fixed as
soon as we can.
If I wait for a while then click again on the login button It works as expected.
I read somewhere that facebook should be displaying "Leave application" in the permission popup instead of "Cancel" I guess this is the issue.
Anyone has any clue on how to solve that problem or should I submit a bug report on facebook.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前,此错误在 Facebook 的错误跟踪器中作为错误打开,请参阅此处:https://developers.facebook.com/ bugs/287587111265733 - 我之前自己复制了它,并且它已被分配进行修复
我相信如果你等待一段时间对话框会再次工作(即仅当您在拒绝后快速返回对话框时才会发生失败,除非进行积极的测试,否则实际上不会发生这种情况)。
This is currently open as a bug in Facebook's bug tracker, see here: https://developers.facebook.com/bugs/287587111265733 - I reproduced it myself earlier, and it's been assigned for fixing
I believe if you wait a while the dialog works again (i.e the failure only happens if you go back to the dialog quickly after rejecting it, which shouldn't really happen except when aggressively testing).