简体   繁体   中英

Trigger.io Facebook “Login Failed, EXPECTED_FAILURE”

I am having many issues with connecting my Trigger.io app with Facebook using forge.facebook.authorize.

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. The error message is unhelpful.

Here's what happens when I get directed to the Facebook app:

在此处输入图片说明

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?

All 7 of my testers that I distributed to have also reported problems with Facebook login. 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.

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.

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.

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.

To fix it, I did the following:

  1. Remove my app from Facebook > Account Settings > Apps > Apps you use on facebook.com
  2. Call forge.facebook.logout() in my app to clear the cached data

I was then able to use 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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