我正在通过关注此 https://developers.facebook.com/docs/facebook-login/login-flow-for-web/ 启用 Facebook 登录按钮到我的博客
我做的一切都很完美,但当我转到浏览器控制台时,它没有显示我正在获取这些信息。
Invalid App Id: Must be a number or numeric string representing the application id. all.js:56 FB.getLoginStatus() called before calling FB.init().
怎么办?
我还集成了 google+ 登录按钮,它的工作完美在这里工作检查它。 http://hashtaginside.blogspot.com/
最佳答案
您需要一个应用 ID 才能让您的登录工作流程正常工作。要获得一个,您必须注册为 Facebook 开发者。然后转到https://developers.facebook.com/apps并创建一个新的应用程序。然后你就可以使用 Facebook 登录了。
然后将登录按钮的 src 更改为
http://www.facebook.com/plugins/login_button.php?app_id={your_app_id}&channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter%2FLEdxGgtB9cN.js%3Fversion%3D40%23cb%3Dfd83dd978%26domain%3Dhashtaginside.blogspot.com%26origin%3Dhttp%253A%252F%252Fhashtaginside.blogspot.com%252Ff2e65db4e4%26relation%3Dparent.parent&locale=en_US&max_rows=1&sdk=joey&show_faces=true&width=200
其中 {your_app_id} 是 Facebook 给你的应用程序 ID。
如果您需要更多帮助,请告诉我,我可以带您走得更远。
关于javascript - Facebook 登录按钮没有显示在我的博客上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22596617/