I have implemented the Facebook login and it works fine on some devices/AVDs. My development device is a Gingerbread phone, but testing it with a 4.1.1 device, it simply doe
Shirley Facebook login is not broken on all 4.1.1 devices, so it is something with your implementation.
Are you sure the Key Hash is the same on that device as what you have configured on developer.facebook.com? If you used a different dev key, or it was installed by a third-party store, it's possible the key hashes don't match.
Turn on debug logging in the Facebook SDK source code and rebuild it. It is generally off by default for security reasons. Depending on your version of the SDK, it may be in Util.java or some other location, and may be a variable called 'ENABLE_LOG'.
connect device to eclipse to see logcat. if log cat not running open cmd prompt in windows and run adb restart, (set the adb path first). then you can see logcat running. now open your app and click facebook login button. you can get the correct hash key in yellow colour in log cat. put that key on facebook and now facebook login will work on every device. thanks.
There isn't enough info in your question. so, I'm making a few guesses here.
1)First look into Mike Venzke's answer.
2) If this doesn't work then try this: You need to sign in on you device using SSO (Single Sign On). So here are the steps you can take.
delete the build. reinstall it. and when asked for permissions from your device, allow them.
If you aren't taken back to your app then you need to add these to your manifest file:
<activity
android:name="com.facebook.LoginActivity"
android:label="@string/app_name" >
</activity>
<meta-data android:value="@string/app_id" android:name="com.facebook.sdk.ApplicationId"/>
where app_name and app_id are your respective app Id and app name on your Facebook app page.
Have you added these btw?
you need these permission as well
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
if you post some more info I might be guess the issue.
Since Honeycomb you are not able to make internet calls on the main thread, try using an Android AsyncTask or creating a new thread yourself.
http://developer.android.com/reference/android/os/AsyncTask.html
I got this error when using a device with an old version of facebook. Removing facebook completely, or updating the facebook app fixed it.
I'm pretty sure this happens because Facebook for Android used to be just a wrapped WebView of the mobile site.
Also note that some devices (my Incredible 4G LTE) will reinstall the old (webview) version of facebook if you try to remove it.
I think the problem with your Facebook android app in device. So first uninstall the facebook android app from device and check that facebook login working properly or not.