Ejemplo n.º 1
0
 public function getGraph($fields, $access_token)
 {
     $url = 'https://graph.facebook.com/me?fields=' . $fields . '&access_token=' . $access_token;
     $curl = new CUrl();
     return json_decode($curl->connect('GET', $url));
 }
Ejemplo n.º 2
0
 public function getInfo($access_token)
 {
     $url = 'https://www.googleapis.com/plus/v1/people/me?access_token=' . $access_token;
     $curl = new CUrl();
     return json_decode($curl->connect('GET', $url));
 }