0

I want to add facebook login ability to my android app. I created app in developers.facebook.com section and it is marked as published.

For some reason only profiles that are listed as admins, developers and testers can login using facebook.

I don't use any permissions except public_profile.

moonvader
  • 19,761
  • 18
  • 67
  • 116
  • 1
    Make your apk with same keystore for which you have generated facebook keyhash, for e.g if you have mentioned keyhash in fb developer account of debug.keystore , then u should make apk with that keystore and run on different mobiles by just copying this apk into it. Because debug.keystore changes for each computer system. Better to make a new keystore of yours and mentioned its key hash into your fb developer account and make a signed apk , then run the application, it will work hope so....:) – Dhiraj Choudhary Jul 29 '16 at 10:40
  • check the link for your solution : http://stackoverflow.com/a/26135600/5541373 – Lalit Sharma Jul 29 '16 at 10:52
  • my app is published already – moonvader Jul 29 '16 at 10:55

2 Answers2

0

You need to make your facebook app public. go to facebook dev page. select your app. go to app review. and make it public

rakesh kashyap
  • 1,418
  • 22
  • 41
0

Some Suggestion
Check if Settings> Basic > Android Key Hash are setup. if not

HOW TO GET AND SET HASHKEY
as Refer to Facebook Login Documentation
https://developers.facebook.com/docs/android/getting-started/#create_hash
The most preferable solution by me is by code ( Troubleshooting Sample Apps )
it will print out the hash key. you can update it on
https://developers.facebook.com/apps/yourFacebookappID/settings/basic/
on Android > Key Hashes section

a step by step process on how to get the hashKey.

  1. Firstly Add the code to any oncreate method enter image description here

  2. Run The app and Search the KeyHash at Logcat enter image description here

step by step process on how Update on Facebook Developer.

  1. Open Facebook Developer Page. You need access as to update the Facebook Developer page.
    https://developers.facebook.com

  2. Follow the step as follow.enter image description here

Muhammad Asyraf
  • 1,748
  • 15
  • 20