Skip to content

Instantly share code, notes, and snippets.

@sansari
Created December 16, 2011 06:47
Show Gist options
  • Save sansari/1484847 to your computer and use it in GitHub Desktop.
Save sansari/1484847 to your computer and use it in GitHub Desktop.
1) The 'perms' parameter has been renamed to 'scope' for FB.login --> FB.login( callback, {scope:'manage_pages'})
2) The function FB.getSession has been renamed to FB.getAuthResponse
3) The structure of the response for FB.login, FB.getLoginStatus and FB.getAuthResponse has changed. response.session is now response.authResponse, and authResponse only contains and accessToken, userId, signedRequest and expiresIn. Please note the name change from access_token to accessToken and user_id to userId.
4) No other information is passed including which permissions have been granted. Another graph call must be made with the access token to get any more information. For example, you may need to make another call to /me to get current permissions, and verify that the permissions include the one you just asked for.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment