问题
I have an Android app using Facebook to login.
The app is already public:
When trying to login via Facebook, I get this exception:
com.facebook.FacebookAuthorizationException: App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions.
Since the test users are able to login perfectly fine, I'm assuming that my code if fine.
回答1:
STEP 1:
In Settings - > Basic -> Contact Email .(Give your/any email)
STEP 2:
Make sure you have a valid Privacy Policy available.
STEP 3: in 'App Review' Tab : change
Do you want to make this app and all its live features available to the general public? to 'Yes'.
回答2:
If the app status says that the App is public, yet you see the error with the SDK login, create a new app and start over.
This is a bug on facebook's end.
回答3:
I also encountered this issue because I used wrong app id and app secret. Please use valid app id and app secret.
回答4:
Go to your App Dashboard. Click on App Review (Left side menu) and make your app public? Click "Yes". That's it.
回答5:
Excelent aportation. This me Help Very much
STEP 1:
In Settings - > Basic -> Contact Email .(Give your/any email)
STEP 2: in 'Status and Review' Tab : change
Do you want to make this app and all its live features available to the general public? to 'Yes'.
回答6:
Unlike Google, Facebook api needs a valid ssl certificate. So if your website isn't https then according to facebook you are still in development mode. Here is the link to their docs https://developers.facebook.com/docs/apps/security
For development purposes you can use the roles option (can be found on the leftside menu). In here you can enroll your self as a developer or tester to use all the live features.
Once you are done with the development you will have to get an ssl certificate. You can also use a free service like https://letsencrypt.org to get a valid certificate, facebook requires your certificate to be sha256WithRSAEncryption, i personally haven't used letsencrypt with facebook yet but they are one of their sponsors to i guess it should meet their criteria of a decent certificate.
来源:https://stackoverflow.com/questions/29817602/facebook-app-is-public-but-gives-error-app-not-setup-when-logging-in