Problem with facebook app and SDK conflict on Android

  • Replies:0
  • OpenNot stickiedUnanswered

Aug 22, 2012 6:11:30 AM via Website

I am developing an app for android. I am using the long lived access token. I use the following code to send app requests to facebook:
1//code showing relevant sections.
2
3 private WeakReference<FragmentActivity> mActivity;
4 mActivity = new WeakReference<FragmentActivity>(activity);
5 private Facebook mFacebook; //mFacebook is Facebook object and contains session info
6 mActivity.get() //Gets the current context
7 Bundle params = new Bundle();
8 params.putString("message","App request message");
9 mFacebook.dialog(mActivity.get(), "apprequests", params, new AppRequestsListener());


Now, this request is failing with API error 10, if facebook app is installed on the phone. If I remove the facebook app from phone, this request starts working.

Is it a known issue with facebook based apps on android?

Regards
Ajay

— modified on Aug 22, 2012 6:11:52 AM