简体   繁体   English

Facebook PHP SDK示例错误

[英]Error with Facebook PHP SDK Example

I am trying out the Facebook PHP SDK example at https://github.com/facebook/php-sdk/blob/master/examples/example.php on a localhost XAMPP server. 我正在localhost XAMPP服务器上的https://github.com/facebook/php-sdk/blob/master/examples/example.php上试用Facebook PHP SDK示例。

Problem: When I click on the Login with Facebook button, I get an error on Facebook An error occurred. Please try again later. 问题:当我单击“ Login with Facebook按钮时,我在Facebook上收到An error occurred. Please try again later. An error occurred. Please try again later. .

Other than this, the rest of the example appear ok, showing the profile pic and profile name. 除此之外,该示例的其余部分都显示为ok,其中显示了个人资料图片和个人资料名称。

Any idea what is happening? 知道发生了什么吗? Thanks! 谢谢!

Have you set up your URLs in the App? 您是否在应用程序中设置了URL? Such like Site URL and Site Domain? 例如网站网址和网站域? Otherwise we need more information on how you have set up your code. 否则,我们需要有关如何设置代码的更多信息。

您是否创建了一个Facebook应用程序并将示例的appId和密码替换为您的应用程序?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM