[英]Login “An Error has Occurred”
I am having an issue when upgrading from Facebook's PHP SDK version 2.1.2 to 3.1.1 in anticipation for the Oct 1, 2011 cutoff. 从2011年10月1日起将Facebook的PHP SDK版本2.1.2升级到3.1.1时遇到问题。 The url appears to have changed: 网址似乎已更改:
FROM 从
https://www.facebook.com/login.php?api_key=MY_KEY https://www.facebook.com/login.php?api_key=MY_KEY
TO 至
https://www.facebook.com/dialog/oauth?client_id=MY_KEY https://www.facebook.com/dialog/oauth?client_id=MY_KEY
Everytime I generate the new URL I keep receiving "An error occurred with Website. Please try again later." 每次生成新的URL时,我都会不断收到“网站发生错误。请稍后重试。”
I have searched the wiki/faq on Github page for sdk, but haven't found anything. 我已经在Github页面的wiki / faq上搜索了sdk,但没有找到任何东西。
Anyone else having this issue? 还有谁有相同的问题吗?
I had this exact same problem while converting a Connect application. 转换Connect应用程序时,我遇到了完全相同的问题。 I figured it out! 我想到了! Connect used the application KEY (which is alphanumeric). Connect使用了应用程序KEY(字母数字)。 The new API / oAuth requires the application ID (which is shorter and numeric). 新的API / oAuth需要应用程序ID(较短的数字)。 An invalid application ID consistently returns this generic error. 无效的应用程序ID始终返回此一般错误。 Hope this helps. 希望这可以帮助。
Just in case someone else has this same issue you can also try disabling sandbox mode on your app's config settings on facebook. 万一其他人遇到了同样的问题,您也可以尝试在Facebook的应用配置设置中禁用沙盒模式。 My scenario was that I could login using facebook but no one else could. 我的情况是我可以使用Facebook登录,但没有其他人可以登录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.