解析 Facebook 登录失败,错误代码为 251 [英] Parse Facebook login fails with error code 251

查看:38
本文介绍了解析 Facebook 登录失败,错误代码为 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆