Joined
·
1 Posts
Hello All,
For my website I have been using the following code to login through facebook account:
$user = $facebook->getUser();
if ($user) {
try {
$user_profile = $facebook->api('/me');
} catch (FacebookApiException $e) {
echo '<pre>'.htmlspecialchars(print_r($e, true)).'</pre>';
$user = null;
}
}
Initially it was working fine and was redirecting me to the website without any difficulty.
From past 1 month it is creating problem and not working properly. I have changed the code as following.
perms-> scope
oauth: True
But the code is only working fine with the browser google Chrome. When it comes to Mozilla it is showing an error. In Mozilla it is trying to redirect,but a blank
page is coming and will be there until we will not refresh the page. Even we are unable to track the facebook email.
For my website I have been using the following code to login through facebook account:
$user = $facebook->getUser();
if ($user) {
try {
$user_profile = $facebook->api('/me');
} catch (FacebookApiException $e) {
echo '<pre>'.htmlspecialchars(print_r($e, true)).'</pre>';
$user = null;
}
}
Initially it was working fine and was redirecting me to the website without any difficulty.
From past 1 month it is creating problem and not working properly. I have changed the code as following.
perms-> scope
oauth: True
But the code is only working fine with the browser google Chrome. When it comes to Mozilla it is showing an error. In Mozilla it is trying to redirect,but a blank
page is coming and will be there until we will not refresh the page. Even we are unable to track the facebook email.