Good afternoon. I've implemented the Facebook API (v3) in my Android app so users can share achievements etc. When the Facebook Activity is finished then onActivityResult is called in the parent Activity.
How can I recognize if the onActivityResult was called from a Facebook-Activity? Can I define the requestCode Facebook should use?
Any help is highly appreciated.
Update
Am I right that the requestCode of Facebook is always 64206 ?
You can set your own request code.
You'll need to create a Session.OpenRequest or Session.NewPermissionsRequest, but there is a setRequestCode method in both of those classes:
https://developers.facebook.com/docs/reference/android/current/class/Session.OpenRequest
https://developers.facebook.com/docs/reference/android/current/class/Session.NewPermissionsRequest
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.