forked from facebook/facebook-android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android-sdk] Adds RequestBatch-level completion callback; fixes Sess…
…ion reauth behavior. Summary: Some scenarios involving batched Graph API calls are more cleanly implemented with a completion callback that applies to the batch as a whole, rather than individual requests within the batch. This commit adds such a callback to RequestBatch. It also fixes a couple issues with Session and reauthorization. It adds a check to ensure that the access token resulting from a reauthorization represents the same Facebook profile as the previous access token did (since users could authenticate using different credentials than when the session was originally opened). It also fetches a current list of permissions for the user following a reauthorization, to help ensure that the client copy of the permission list stays in sync with the service. Finally, it fixes LoginActivity to pass back the AccessTokenSource of the access token it provides, so we can set it properly. Test Plan: - Added unit tests - Ran unit tests - Ran Scrumptious, HelloFacebook, and BooleanOG samples Revert Plan: Reviewers: mmarucheck, mingfli, karthiks Reviewed By: mmarucheck CC: ekoneil, caabernathy Differential Revision: https://phabricator.fb.com/D647716 Task ID: 1925038, 1925028
- Loading branch information
Chris Lang
committed
Dec 7, 2012
1 parent
3afe006
commit 5ca08f4
Showing
17 changed files
with
708 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.