Advertisement
Guest User

Untitled

a guest
Mar 6th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. $url = $_REQUEST["url"];
  2.  
  3.  
  4.  
  5. $jsonurl = 'http://graph.facebook.com/'.$url;
  6.  
  7. $json = file_get_contents($jsonurl,0,null,null);
  8. $json_output = json_decode($json);
  9.  
  10. $fbid = json_encode($jsonurl);
  11. $fbid = ($json_output->id);
  12.  
  13. echo $fbid;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement