Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Facebook post does not work when the Facebook app is already installed on the device

I have an app that posts a string to user's wall. The app worked ok in the emulator but I could not make it work in a real device. At first I thought I have a problem with the hash key. But then I tried it on a device that does not have Fb installed on it and it worked. When I installed Fb on the device it did not post and uninstalling it again it works fine. I assume that the Facebook app is blocking my app from using the SDK? The approach I use is more or less following this -> http://blog.doityourselfandroid.com/2011/02/28/30-minute-guide-integrating-facebook-android-application/ but I get the same with other approaches.

I see that there is a problem reading this -> Post to user facebook wall not working when Facebook app is installed on device/emulator but what should I do to solve it? I do not want my users to have to uninstall Fb of course! Has anyone come to the same situation and managed to solve it?

like image 901
george Avatar asked Dec 30 '11 09:12

george


1 Answers

Small Changes in the code (facebook package)

Look into authorize function in facebook.java file. try to comment out the singlesignon and use startdialog() only... something like this.. hope it helps.

like image 87
RajaReddy PolamReddy Avatar answered Oct 23 '22 05:10

RajaReddy PolamReddy