distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

FacebookAPI Issue on iOS7 (FacebookAPIEvent.SESSION_CLOSED dispatched on login) #170

Closed WhitechDev closed 9 years ago

WhitechDev commented 10 years ago

We are having an issue with the FacebookAPI extension on some iOS devices. When attempting to open a session, the user is prompted with the OS level dialogue asking for permission. But when "OK" is clicked, a FacebookAPIEvent.SESSION_CLOSED event is dispatched from the ANE, and there is no sign of an access token.

These are the interactions we have with the extension:

Then the app dispatches session closed the event. We are using the current ANE from github (as of 16/07).

If I disable OS dialogues it logs in fine (via the browser).

WhitechDev commented 10 years ago

Anyone?

minimedj commented 10 years ago

It seems that support on vacation or something. I am also waiting a reply for my urgent question.

Best regards, Max

skype: max.bourinov

On Thu, Aug 14, 2014 at 9:38 AM, WhitechDev notifications@github.com wrote:

Anyone?

— Reply to this email directly or view it on GitHub https://github.com/distriqt/airnativeextensions/issues/170#issuecomment-52152605 .

ahujsak commented 10 years ago

I dont know if you have found a solution to this yet. I have run across a similar problem , and have figured out the root cause. It has to do with the permissions you are requesting, and how you are doing it. Basically, Facebook has two sets of permissions in release right now, one on mobile and one on browser.

Here is my example: If I connect using createSession(["basic_info"], true, true); native dialogs work on mobile, however on my emulator which uses web, I get an error saying you cant use "basic_info" you need to use "public_profile". If you use "public_profile" instead, it works on the emulator and not on the device. Hope this helps . I am putting in a ticket about this . You can read more about the settings issue at this web page. https://developers.facebook.com/docs/apps/changelog

WhitechDev commented 10 years ago

Thanks for the tip, we haven't found a solution for this yet and were intending to address it again in the coming few weeks.

ahujsak commented 10 years ago

I have a hack right now, and basically I have a command that executes the call. and if I get a closed connection before one ever opens, I then re-call using the other format. This way I can do a catch all depending on the users device.. Not elegant but functional

minimedj commented 10 years ago

This is not open source project. I am personally paid for ANE, so I am wondering when official support will reply to us?

WhitechDev commented 10 years ago

We ended up updating an open source Facebook API ANE to work for us. https://github.com/WhitechDev/ANE-Facebook

Very disappointing lack of support.