Parse Facebook login fails with error code 251

大兔子大兔子 提交于 2019-11-27 06:26:43

问题


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.

I'm getting the following error message:

    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.

I also downloaded the Parse tutorial "IntegratingFacebookTutorial" and still the same error.

(I added the bundle to the facebook app and updated the application id on xcode as required.

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.


回答1:


Found a solution (will be happy to hear if its a valid solution)

In the facebook app (developer.facebook.com) -> Settings -> Advanced -> Is your app secret embedded -> Set to "No" and problem solved!



来源:https://stackoverflow.com/questions/24423227/parse-facebook-login-fails-with-error-code-251

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!