简体   繁体   English

Trigger.io Facebook“登录失败,EXPECTED_FAILURE”

[英]Trigger.io Facebook “Login Failed, EXPECTED_FAILURE”

I am having many issues with connecting my Trigger.io app with Facebook using forge.facebook.authorize. 使用forge.facebook.authorize将Trigger.io应用程序与Facebook连接时遇到很多问题。

Once I switched from a development to Ad Hoc distribution I am unable to login at all. 从开发版本切换到临时发行版本后,我将完全无法登录。 I even went as far as deleting my Facebook Account from my iPhone to see if logging in through the Facebook app would work but that doesn't either. 我什至甚至从我的iPhone中删除了我的Facebook帐户,看看是否可以通过Facebook应用程序登录,但是那都不行。 The error message is unhelpful. 该错误消息没有帮助。

Here's what happens when I get directed to the Facebook app: 当我被定向到Facebook应用时,会发生以下情况:

在此处输入图片说明

Then when I click "Okay" it takes me back to the app and this is the only indication I get of what went wrong: 然后,当我单击“确定”时,它将带我返回到应用程序,这是我唯一发现错误的信息:

在此处输入图片说明

What does this error mean? 这个错误是什么意思? Is there a configuration setting I haven't set right? 有没有我没有正确设置的配置设置? What would cause this to work on development (simulator & device) but not Ad Hoc distribution? 是什么会导致它在开发(模拟器和设备)上起作用,而不在Ad Hoc发行版上起作用?

All 7 of my testers that I distributed to have also reported problems with Facebook login. 我分发给我的所有7位测试人员也都报告了Facebook登录问题。 Although no 2 seem to be the same. 尽管似乎没有两个是相同的。

I've had a go at reproducing this and it seems to work fine for me on both iOS 5 with the Facebook app and iOS 6 logged in to the iOS facebook integration. 我已经尝试过重现此功能,并且对于使用Facebook应用程序的iOS 5和登录到iOS facebook集成的iOS 6来说,它似乎都可以正常工作。

My best guess is that your adhoc app has a different package name to your development app and that was not configured in the Facebook developer center. 我最好的猜测是,您的即席应用程序具有与开发应用程序不同的程序包名称,并且未在Facebook开发人员中心中进行配置。

It's also worth noting that changing the Facebook developer settings can take some time to propagate to all of their servers, so if any changes you try don't work straight away make sure to try again a bit later. 还值得注意的是,更改Facebook开发人员设置可能需要一些时间才能传播到所有服务器,因此,如果您尝试进行的任何更改都无法立即生效,请确保稍后再试。

I had this same issue and the problem was that I had changed my app settings on Facebook and I guess data was being cached on the device that was preventing Facebook from authorizing the request. 我遇到了同样的问题,问题是我在Facebook上更改了我的应用设置,并且我猜数据正在缓存在阻止Facebook授权请求的设备上。

To fix it, I did the following: 为了解决这个问题,我做了以下工作:

  1. Remove my app from Facebook > Account Settings > Apps > Apps you use on facebook.com 从Facebook>帐户设置>应用程序>您在facebook.com上使用的应用程序删除我的应用程序
  2. Call forge.facebook.logout() in my app to clear the cached data 在我的应用程序中调用forge.facebook.logout()清除缓存的数据

I was then able to use forge.facebook.authorize . 然后,我可以使用forge.facebook.authorize If you haven't changed your app settings, maybe just make sure you're calling forge.facebook.logout when the user logs out. 如果您尚未更改应用设置,则只需确保在用户注销时正在调用forge.facebook.logout

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM