freshplanet / ANE-Facebook

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

Facebook App login #107

Closed shamruk closed 10 years ago

shamruk commented 10 years ago

It would be great to have a possibility to login to FB via FB app. 60% on all mobile traffic goes through FB app. So it should be №1 method to login, not via iOS SDK and web should be plan B.

PS Thanks for your work

ataugeron commented 10 years ago

That's already the case actually...

On Tue, Nov 12, 2013 at 12:35 PM, shamruk notifications@github.com wrote:

It would be great to have a possibility to login to FB via FB app. 60% on all mobile traffic goes through FB app. So it should be No.1 method to login, not via iOS SDK and web should be plan B.

Reply to this email directly or view it on GitHubhttps://github.com/freshplanet/ANE-Facebook/issues/107 .

shamruk commented 10 years ago

Sorry, but I neither can find the corresponding code (I see only FBSessionLoginBehaviorUseSystemAccountIfPresent and FBSessionLoginBehaviorWithFallbackToWebView) nor can reproduce FB-app login on iOS device (I logout from iOS->setting->Facebook, install the FB app, login, open my app, see web form instead of FB App).

ataugeron commented 10 years ago

In the master branch, this is achieved by calling openSessionWithPermissions instead of openSessionWithReadPermissions.

In the feature/android-review branch (which will be merged in master soon), openSessionWithPermissions has been removed and an optional Boolean parameter has been added to openSessionWithReadPermissions to choose wether you want the system login or not.

If you see the web form in your app after following these instructions, it probably means your URL schemes are not properly configured. Remember your app descriptor should contain an URL scheme "fb" in order for the Facebook application to be able to switch back to your app during the login flow.

On Wed, Nov 13, 2013 at 4:04 AM, shamruk notifications@github.com wrote:

Sorry, but I neither can find the corresponding code (I see only FBSessionLoginBehaviorUseSystemAccountIfPresent and FBSessionLoginBehaviorWithFallbackToWebView) nor can reproduce FB-app login on iOS device (I logout from iOS->setting->Facebook, install the FB app, login, open my app, see web form instead of FB App).

— Reply to this email directly or view it on GitHubhttps://github.com/freshplanet/ANE-Facebook/issues/107#issuecomment-28378537 .

ataugeron commented 10 years ago

The feature/android-review branch has been merge in master.