Skip to content

Instantly share code, notes, and snippets.

@tuphamphuong
Created September 8, 2016 04:44
Show Gist options
  • Save tuphamphuong/45dabb875220ecec3d11252a1874f51f to your computer and use it in GitHub Desktop.
Save tuphamphuong/45dabb875220ecec3d11252a1874f51f to your computer and use it in GitHub Desktop.
RestFb get extended Facebook token
FacebookClient facebookClient = new DefaultFacebookClient(token, secretKey);
FacebookClient.AccessToken extendedAccessToken = facebookClient.obtainExtendedAccessToken(appId, secretKey, token);
String extendedToken = extendedAccessToken.getAccessToken();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment