Parse Facebook login error with error code 251

I am trying to use the Parse Facebook and Twitter login in my application, but the problem is that I cannot get Facebook login.

The following error message appears:

    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 Parse's tutorial "Integration FacebookTutorial" and still have the same errors.

(I added the package to the facebook app and updated the app id on xcode as needed.

The same thing happens in my own project when I try to use PFLogInViewController, the same setting + I call [PFFacebookUtils initializeFacebook]; in my didFinishLaunchingWithOptions.

I found a few posts about this problem, but still have zero solutions.

+4
source share
1 answer

Found a solution (I will be glad to hear if this is a valid solution)

In the facebook application (developer.facebook.com) → Settings → Advanced → Is your application secret built-in → Is set to “No” and the problem is solved!

+15
source

Source: https://habr.com/ru/post/1546089/


All Articles