Working with facebook in Android. Sometimes my application is cashing in real time device when I tried to authorize Facebook in Android.not in emulator. I used the Android F
I faced the same issue.You must try to put this method in loop
Looper.prepare();
new fbwork().execute(facebook);
Looper.loop();
I'm having this problem too. I couldn't get the AsyncTask code working.
So I ended up using runOnUiThread. It works on the emulator, but not on the device, I'm using HTC Desire Android SDK 2.2.2. Unfortunately, I can't even login to Facebook using Hackbook (Facebook's sample project).
Here's code that uses runOnUiThread: Android App Crashes after Sharing using Facebook Dialogs
Facebook authorize uses methods which access event thread, so you dont need to execute this method into another thread, than event thread.
If you face issue in execution of this method in normal event thread, specifythat issue.