I get an infinite loop in URL redirection after the user either logs in or has already registered. The page is redirected to the login page if the user has not logged in as expected, but enters the loop as soon as he enters credentials.
Below is the code:
<?php include_once ('facebook.php'); $api_key = 'xxxxxxxxxxxx'; $secret = 'xxxxxxxxxxxx'; global $facebook; $facebook = new Facebook($api_key, $secret); $facebook->require_frame(); $uid = $facebook->require_login($required_permissions = 'email,status_update,offline_access'); $facebook->api_client->users_hasAppPermission("offline_access",$uid);
Interestingly, this code worked before, but suddenly started giving me an endless loop problem. There has been some discussion on the facebook forum about this, but no indication which is a bug or what is the workaround.
Any help would be greatly appreciated.
thanks
source share