Skip to content Skip to sidebar Skip to footer

Facebook Authorize Not Working Inside Android Asynctask Or Thread

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 Facebook

Solution 1:

I faced the same issue.You must try to put this method in loop

 Looper.prepare();
 new fbwork().execute(facebook);
 Looper.loop();

Solution 2:

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.

Solution 3:

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

Post a Comment for "Facebook Authorize Not Working Inside Android Asynctask Or Thread"