php - infinite loop in Facebook app -
in facebook app, infinite redirect loop because of following 2 lines, although working yesterday!
$loginurl = $facebook->getloginurl(array('redirect_uri' => $fbconfig['appurl'], 'scope' => 'user_birthday,email')); print "<script type='text/javascript'>top.location.href = '$loginurl';</script>";
apparently problem in getting user data api:
if ($user) { try { // if user has been authenticated proceed $user_profile = $facebook->api('/me'); } catch (facebookapiexception $e) { error_log($e); $user = null; } }
Comments
Post a Comment