daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Jun 25th, 2018 149 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. FacebookGraphNodesGraphUser Object
  2. (
  3. [items:protected] => Array
  4.     (
  5.         [id] => 1795825283829712
  6.         [name] => Ajay Purohit
  7.         [email] => goodlifeap@gmail.com
  8.         [cover] => FacebookGraphNodesGraphNode Object
  9.             (
  10.                 [items:protected] => Array
  11.                     (
  12.                         [offset_x] => 0
  13.                         [offset_y] => 0
  14.                         [source] => https://platform-lookaside.fbsbx.com/platform/coverpic/?asid=1795825283829712&ext=1530164415&hash=AeTsLieIbrAMpvRo
  15.                     )
  16.  
  17.             )
  18.  
  19.         [gender] => male
  20.         [birthday] => FacebookGraphNodesBirthday Object
  21.             (
  22.                 [hasDate:FacebookGraphNodesBirthday:private] => 1
  23.                 [hasYear:FacebookGraphNodesBirthday:private] => 1
  24.                 [date] => 1994-07-04 00:00:00.000000
  25.                 [timezone_type] => 3
  26.                 [timezone] => UTC
  27.             )
  28.     )
  29. )
  30.    
  31. <?php
  32.  
  33. include '../fb_php/config.php';
  34.  
  35. try {
  36.   // Returns a `FacebookFacebookResponse` object
  37.   $responseUser = $fb->get('/me?fields=id,name,email,cover,gender,birthday,picture,link,hometown,location', $_SESSION['fbuser_access_token']);
  38.   $responseImage = $fb->get('/me/picture?redirect=false&width=100&height=100', $_SESSION['fbuser_access_token']);
  39. } catch(FacebookExceptionsFacebookResponseException $e) {
  40.   echo 'Graph returned an error: ' . $e->getMessage();
  41.   exit;
  42. } catch(FacebookExceptionsFacebookSDKException $e) {
  43.   echo 'Facebook SDK returned an error: ' . $e->getMessage();
  44.   exit;
  45. }
  46.  
  47. $userData = $responseUser->getGraphUser();
  48. $Image = $responseImage->getGraphUser();
  49.  
  50. echo"<pre>";
  51. //print_r($userData['birthday']);
  52. //print_r($Image);
  53. print_r($userData);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top