Error 191 in Testing FaceBook to Work in Website
I am trying to test Facebook with a single login and all the comments to work in my website which is under one domain. Does anyone encounter the same issue? Do you have any ideas on resolving it?
I am trying to test Facebook with a single login and all the comments to work in my website which is under one domain. Does anyone encounter the same issue? Do you have any ideas on resolving it?
To solve these kinds of errors, here are some methods below that might be able to help you with your problem:
$params = array(
'scope' => 'email',
'redirect_uri' => $authPageURL,);
$auth_url = $facebook->getLoginUrl($params);
Then that page needs to redirect to your canvas URL using a 301. So create a page called auth.php or something that has this in it.
if(isset($_REQUEST['error_reason']))
{
header('Location: '.$auth_error_page);
}
else
{
header('Location: '.$FB_canvas_page);
}
You can use that page to redirect URL.