Social class

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<?php
require_once __DIR__.'/social_networks/common.inc';
class Social {
public static function processFBToken($token) {
echo __DIR__.'/social_networks/common.inc';
$SocialAPI = new FacebookHandler;
$SocialAPI->use_credentials($token, 'NULL');
return [
'result' => $SocialAPI->get_user(),
'error' => $SocialAPI->errors()
];
}
}
?>