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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -