解析Facebook登录失败,错误代码为251 [英] Parse Facebook login fails with error code 251
问题描述
我正在尝试使用Parse Facebook&我的应用程序中有Twitter登录,但问题是我无法使Facebook登录正常工作.
I'm trying to use Parse Facebook & Twitter login in my app but the problem is I can't get the Facebook login to work.
我收到以下错误消息:
Error Domain=Parse Code=251 "The operation couldn’t be completed. (Parse error 251.)" UserInfo=0xa0329c0 {code=251, error=The supplied Facebook session token is expired or invalid.
我还下载了Parse教程"IntegratingFacebookTutorial",并且仍然存在相同的错误.
I also downloaded the Parse tutorial "IntegratingFacebookTutorial" and still the same error.
((我将捆绑软件添加到了Facebook应用中,并根据需要在xcode上更新了应用ID.
(I added the bundle to the facebook app and updated the application id on xcode as required.
当我尝试使用PFLogInViewController时,在我自己的项目中也会发生同样的情况,相同的设置+我正在调用[PFFacebookUtils initializeFacebook];在我的didFinishLaunchingWithOptions中.
The same happens in my own project when trying to use PFLogInViewController, same setup + I'm calling [PFFacebookUtils initializeFacebook]; in my didFinishLaunchingWithOptions.
我发现了有关此问题的几份报告,但到目前为止零解决方案.
I found several reports about this issue but zero solutions so far.
推荐答案
找到了解决方案(很高兴得知其是否为有效解决方案)
Found a solution (will be happy to hear if its a valid solution)
在facebook应用(developer.facebook.com)中->设置->高级->您的应用秘密是否已嵌入->设置为否",问题已解决!
In the facebook app (developer.facebook.com) -> Settings -> Advanced -> Is your app secret embedded -> Set to "No" and problem solved!
这篇关于解析Facebook登录失败,错误代码为251的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!