Facebook error "incorrect login settings"

Error in my Logcat:

02-12 10: 04: 54.240: E / SurfaceFlinger (521): Could not open / sys / power / wait _for_fb_sleep or / sys / power / wait_for_fb_wake 02-12 10: 04: 54.250: D / libEGL (521): egl .cfg was not found using the default configuration 02-12 10: 04: 54.260: D / libEGL (521): loaded / system / lib / egl / libGLES _bst.so 02-12 10: 04: 54.260: W / PGA ( 521): eglGetProcAddress: "eglGetRenderBufferANDROID" not found 02-12 10: 04: 55.260: E / HdIpc (521): Connection error err = -1 errno = 110 (ETIMEDOUT). The timeout log is logged only once per process 02-12 10: 04: 55.260: E / PGA (521): Failed to connect to the host, err = -1, try again ... This will be logged only once for each process to avoid flooding logs.

when my phone shows this error and when I press the ok button, which is located on the top corner of the fb page. I also generate a hash key and put it in the control panel. It works fine when I remove the fb application from my mob. but doen't work with fb app. Please help me

0
android facebook-social-plugins
Feb 12 '13 at 5:01
source share
2 answers

Sometimes the key hash that you created is not entirely correct. Apparently (unconfirmed, of course), this is somehow related to JRE 1.7.

Follow one of the two solutions below, and you should be good to go.

Solution 1:

Try this link: http://www.helloandroid.com/tutorials/using-facebook-sdk-android-development-part-1 . I found that using the Facebook method for the Hash Key does not always work as advertised. However, this link has a different way of getting the hash key and almost always works.

Solution 2:

Having said that, I always found that the simplest thing is to let the Facebook SDK tell you what your hash key is. This is much simpler and should not take more than a few minutes.

Step 1: In your Facebook SDK, find the Util.java class. In this case, change this:

private static boolean ENABLE_LOG = false; 

at

 private static boolean ENABLE_LOG = true; 

Step 2: Create a new signed APK, go to your device and install it. If it is already installed, naturally, it will prompt.

Step 3. Once DDMS (Logcat) is launched and the device is connected to the computer, start the application and continue to search for a warning about the key mismatch. This warning has an actual hash key. Copy this key, go to the Facebook Developer page and add the new key to the list.

0
Feb 12 '13 at 5:13
source share

This is a key cache key problem. You can install openSSL (loading for your system ie 32 bit / 64 bit is important), and using the following commands, generate a hash key. This will solve the problem.

  @echo Exporting keystore cert keytool -exportcert -alias myalias -keystore mycert.keystore > mycert.keystore.bin @echo Converting to sha1 C:\PROGRAMS\openssl-0.9.8k_X64\bin\openssl sha1 -binary mycert.keystore.bin > mycert.keystore.sha1 @echo Converting to base64 C:\PROGRAMS\openssl-0.9.8k_X64\bin\openssl base64 -in mycert.keystore.sha1 -out mycert.keystore.base64 @echo Done, Android hash key for Facebook app is: C:\PROGRAMS\openssl-0.9.8k_X64\bin\openssl base64 -in mycert.keystore.sha1 
0
Feb 12 '13 at 5:31
source share



All Articles