Facebook / Carrot login issue - no return from FB app

I made a post in the Plugins/Carrot forum which was empty, but haven’t gotten any replies so I figured I"d post here.  I’m finalizing up a game this morning and have Carrot installed and have been working with the awesome team there at Carrot to get this up and running.

One quick question though which I believe is Facebook-specific, is that if I’ve already logged in the first time to allow FB to have permissions to my game, then oftentimes when my game tries to authenticate again, it never returns from the FB app.  It switches over, fires up the timeline and there it sits.  Then, when I return manually to my game, it clearly didn’t get the callback from FB.

Any ideas what’s happening here?

I guess the real question is, is the facebook.login() call fully internally, and then only go (and hopefully return from) the FB app ONLY IF the user hasn’t given permissions to that app before?  Just trying to wrap my head around the flow of how it works…

Hi @borderleap,

Just curious, did you read the recent blog post on Facebook authentication?

http://www.coronalabs.com/blog/2013/07/30/understanding-facebook-authentication/

Take care,

Brent Sorrentino

Hey Brent, hadn’t seen that one - thanks for pointing me to that!  Will read through now.

“For iOS, URL schemes are used to reactivate your app. Facebook tells iOS to launch an app that is “fbXXXXXXXXXXX” where “XXXXXXXXXX” is your Facebook AppID. To get this ID, configure the necessary aspects of your app in theFacebook Portal.  You must also provide the correct Bundle ID that matches the provisioning profile you are building with.  You cannot use the Wildcard ID here.”

DUH :slight_smile:  I have the FB app fully set up with exception of the app IDs as my app isn’t live yet, so I assume that the FB app wouldn’t really know where to go!??

I will give this a try - this helps a ton.

I guess the real question is, is the facebook.login() call fully internally, and then only go (and hopefully return from) the FB app ONLY IF the user hasn’t given permissions to that app before?  Just trying to wrap my head around the flow of how it works…

Hi @borderleap,

Just curious, did you read the recent blog post on Facebook authentication?

http://www.coronalabs.com/blog/2013/07/30/understanding-facebook-authentication/

Take care,

Brent Sorrentino

Hey Brent, hadn’t seen that one - thanks for pointing me to that!  Will read through now.

“For iOS, URL schemes are used to reactivate your app. Facebook tells iOS to launch an app that is “fbXXXXXXXXXXX” where “XXXXXXXXXX” is your Facebook AppID. To get this ID, configure the necessary aspects of your app in theFacebook Portal.  You must also provide the correct Bundle ID that matches the provisioning profile you are building with.  You cannot use the Wildcard ID here.”

DUH :slight_smile:  I have the FB app fully set up with exception of the app IDs as my app isn’t live yet, so I assume that the FB app wouldn’t really know where to go!??

I will give this a try - this helps a ton.