freshplanet / ANE-Facebook

Air Native Extension (iOS and Android) for the Facebook mobile SDK
Apache License 2.0
221 stars 123 forks source link

Login Page Behavior Changes When Adding/Deleting App ID #138

Closed munkeymike closed 7 years ago

munkeymike commented 10 years ago

If you leave the App ID blank in the Application Descriptor File, the Facebook login is shown as a popup within the app itself. If you input an App ID, the Facebook login opens Safari then switches to Safari.

Aside from this issue, I'd like to be able to have the page load in a StageWebView as opposed to a new browser.

Incubatio commented 10 years ago

Hey @munkeymike, I didn't reproduced your case by blanking/removing FacebookAppID but I did by blanking removing CFBundleURLSchemes in Application Descriptor File.

Anyhow, note that this is not a bug, this how behave applications on ios. When you have facebook app installed, you switch from you app to the facebook app, log in, then switch back to your app. It's exactly the same for safari, you switch from your app to safari, log in, then switch back to your app. You can check how work SongPop or other app like candy crush behaves, as far as I know they switch apps. If you do want to change that behavior, you can change the ane source for ios and force using StageWebView, it's rather simple. However when I tried, I had some issue with iPhone with the stageWebView, when it worked perfectly on iPad.

colouredFunk commented 9 years ago

Hi @Incubatio , are you able to provide a modified ANE ? (ignoring the iphone issue)

Incubatio commented 9 years ago

Nope, I droped my modifications when I tested other app (like song pop) and found out that fast app switching was the standard behavior.

I think you can force the WebView method without recompiling the ane, by just setting "systemFlow" boolean to false when calling method openSessionWith[...] of Facebook.as.