Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

xcode - Parse Facebook login fails with error code 251

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...