<?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()
];
}
}
?>