Facebook Log-in Problem

I having problems in login in facebook which take me days.

bettwen Facebook app and my game app with facebook plug in

  1. If the facebook app was installed in device i cant login facebook which give me an error about hash-key but i figure it properly using setup facebook in corona.
  2. but when i uninstall the facebook app and try to login using my game app to share my game it worked well and all we know almost all apps have facebook app and we cant just ask user to uninstall there facebook app just to post and share our app
  3. i observe that two log in screen was open when i call facebook plug-in in my app the “facebook app” and the “facebook plug-in which like a webpopup”.

Im using latest build 1137 running in windows 32bit

Im using many methods just for share app in facebook but nothing is working if the facebook app was installed in the device.

From what I’ve gathered from looking around :

You’re hooped. For Android builds for now. The issue appears to be resolved in later builds of corona. Which, unfortunately, we don’t have access too being starter subscriptions

So, some solutions for you: you implement a weird work around that makes it seem like your app is buggy ( http://forums.coronalabs.com/topic/37400-facebook-login-flow-on-android-broken-since-daily-build-1141/#entry195068 is the thread containing where to find the solution, ignore the fact that the build is 1141, this thing solved for mine which is currently running the same build as you ), your purchase a Pro subscription in order to get access to the daily build that fixes it, , you wait it out until the fix becomes in the public build, or you don’t use facebook in your app

You have two things here.  First you have to get your keyhash sorted out.  Please see this blog post:

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

If you expect your app to live on devices with the Native Facebook app, this is a must.  It’s unrealstic to expect people to delete the facebook native app for your app.

The second issue is that Facebook wants extra permissions to be asked for in stages.  For iOS, facebook.login() would handle asking for the additional permissions for you in one call.  It did not behave that way on Android.  The engineers updated the facebook.login() API call on Android last week to cover that and now you can simply call facebook.login() with all the permissions you want and ti seems to have solved this issue.

The problem now is that Starer’s are still running the latest public build, 1137 which is before this fix happened (build 1179).  Access to the daily builds is a perk for Pro and Enterprise subscribers.  Starter members will have to wait on the next public build.

From what I’ve gathered from looking around :

You’re hooped. For Android builds for now. The issue appears to be resolved in later builds of corona. Which, unfortunately, we don’t have access too being starter subscriptions

So, some solutions for you: you implement a weird work around that makes it seem like your app is buggy ( http://forums.coronalabs.com/topic/37400-facebook-login-flow-on-android-broken-since-daily-build-1141/#entry195068 is the thread containing where to find the solution, ignore the fact that the build is 1141, this thing solved for mine which is currently running the same build as you ), your purchase a Pro subscription in order to get access to the daily build that fixes it, , you wait it out until the fix becomes in the public build, or you don’t use facebook in your app

You have two things here.  First you have to get your keyhash sorted out.  Please see this blog post:

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

If you expect your app to live on devices with the Native Facebook app, this is a must.  It’s unrealstic to expect people to delete the facebook native app for your app.

The second issue is that Facebook wants extra permissions to be asked for in stages.  For iOS, facebook.login() would handle asking for the additional permissions for you in one call.  It did not behave that way on Android.  The engineers updated the facebook.login() API call on Android last week to cover that and now you can simply call facebook.login() with all the permissions you want and ti seems to have solved this issue.

The problem now is that Starer’s are still running the latest public build, 1137 which is before this fix happened (build 1179).  Access to the daily builds is a perk for Pro and Enterprise subscribers.  Starter members will have to wait on the next public build.