Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $app_id='MY APP ID';
  2. $app_secret='MY APP SECRET';
  3. $access_token="ACCESS TOKEN";
  4. $url="https://graph.facebook.com/oauth/access_token?client_id=".$app_id."&client_secret=".$app_secret."&grant_type=fb_exchange_token&fb_exchange_token=".$access_token;
  5. $a=file_get_contents($url);
  6. echo $a;
  7.  
  8. {
  9. "error": {
  10. "message": "Error validating client secret.",
  11. "type": "OAuthException",
  12. "code": 1
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement