Snehsa
- Forum posts: 1
Aug 22, 2012, 6:11:30 AM via Website
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:
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
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());
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
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.