The application is incorrectly configured for integration with Facebook

Possible duplicate:
The application is incorrectly configured to access Facebook: Android Facebook integration issue

Getting a strange problem from Facebook SDK Application is Mis-Configured for Facebook login. Press Okay to go back to the application without connecting to Facebook. Application is Mis-Configured for Facebook login. Press Okay to go back to the application without connecting to Facebook.

The question has already been asked here , I tried, but could not find a solution in these answers.

this problem does not return any error or response or any exceptions. Already changed more than 2 - 3 APP_ID ..

enter image description here

+6
source share
4 answers

Have you tried checking logcat to see which error message is displayed after clicking the "Okay" button? You mentioned that you already configured your own APP_ID, but have you added your Android Hash Key to your dashboard ?

If you still cannot get it to work, follow the instructions here in our documentation to find out if you can configure and authenticate with our sample application. The sample application is guaranteed to work if you have implemented it correctly - if you cannot configure the Hackbook correctly, you will not be able to configure your application correctly. If you can get the Hackbook to work, you just need to make sure that you do the same in your application to work.

+5
source

to create a signature you need to open openssl on your computer. If you do not have one openssl download from here (http://code.google.com/p/openssl-for-windows/downloads/list)

  • In C :, create openssl folder
  • extract the contents of the downloaded openssl zip file to the openssl folder in the C folder:
  • copy openssl content to jdk1.6.0 \ bin folder
  • open command line
  • move to bin from jdk1.6.0 \ bin. can be done using .. cd "your jdk1.6.0 bin directory" run the following command to generate your keyboard. When generating a hashkey, it should set you a password.

keytool -exportcert -alias androiddebugkey -keystore "C:\Users\Arsalan.android\debug.keystore" | openssl sha1 -binary | openssl base64

NOTE: in the code above, note that you need to specify your path to the user (for example, this is C: \ Users \ Arsalan, you just need to change it for your user account.

Give password like android

. If it does not ask for a password, your path to the keystore is incorrect.

+5
source

It is very simple ...

Just change the function in facebook.java: -

 public void authorize(Activity activity, String[] permissions, final DialogListener listener) { authorize(activity, permissions, **DEFAULT_AUTH_ACTIVITY_CODE**, listener); } 

to ----- public void authorize (activity activity, String [] permissions, final DialogListener listener) {authorization (activity, permissions, FORCE_DIALOG_AUTH , listener); } it will work.

+2
source

I worked for two days and finally got a solution, this is a WRONG way to get a hash key -

 keytool -exportcert -alias *<your _alias_name>* -keystore *<key_store_path>* | [openssl_bin_directory]\openssl sha1 -binary | [openssl_bin_directory]\openssl base64 

The RIGHT method is described here -

http://facebook.stackoverflow.com/questions/13281913/app-is-misconfigured-for-facebook-login-with-release-key-hash

or here

Facebook Android Generate Key Hash

+2
source

Source: https://habr.com/ru/post/925744/


All Articles