X

Sign in

Forgotten your password?

... or login with Facebook:

Don't have an AndroidPIT account yet? Sign up
Android Forum » Android Developer Forum » Android Developer Forum » Problem with facebook app and SDK conflict on Android

Problem with facebook app and SDK conflict on Android

Problem with facebook app and SDK conflict on Android
created on Aug 22, 2012 6:11:30 AM — modified on Aug 22, 2012 6:11:52 AM
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
Reply with quote Reply Link ±0     (0 votes)