Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. {
  2. "id": "1423993568",
  3. "gender": "male",
  4. ...
  5. }
  6.  
  7. {
  8. "error": {
  9. "message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
  10. "type": "GraphMethodException",
  11. "code": 100
  12. }
  13. }
  14.  
  15. http://www.facebook.com/app_scoped_user_id/10152133878666403
  16. --> https://www.facebook.com/shiffoni
  17. --> https://graph.facebook.com/shiffoni
  18.  
  19. {
  20. "id": "669926402",
  21. "first_name": "Shiffoni",
  22. "gender": "female",
  23. "last_name": "Leonhardt",
  24. "locale": "de_DE",
  25. "name": "Shiffoni Leonhardt",
  26. "username": "shiffoni"
  27. }
  28.  
  29. $fb = new Facebook(array(
  30. 'appId' => $app_id,
  31. 'secret' => $app_secret,
  32. 'cookie' => true
  33. ));
  34.  
  35. $fbuser=$fb->api('/me/friends?fields=id,name,gender');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement