i dont know what im doing wrong.
It always shows me the auth url, but i always click the link but still not setting me the app.
ini_set('include_path',"F:\fubolito\ajax.fubolito.py\inc");
include($_SERVER['DOCUMENT_ROOT'].'../ajax.fubolito.py/inc/config.global.php');
include('sdk/facebook.php');
$facebook = new Facebook(array('appId' => $fb['app_id'],'secret' => $fb['secret'],
'cookie' => true,
));
$facebook->setAccessToken($_GET['code']);
$user = $facebook->getUser();
if(!$user)
echo '<a href="'.$facebook->getLoginUrl().'">Login</a>';
What im doing wrong ?
1 Answer