Error 191 in Testing FaceBook to Work in Website

Asked By 0 points N/A Posted on -
qa-featured

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?

API Error Code:191
 
API Error Description: The specified URL is not owned by the application.
 
Error Message: redirect_url is not owned by the application.
SHARE
Answered By 0 points N/A #124944

Error 191 in Testing FaceBook to Work in Website

qa-featured

To solve these kinds of errors, here are some methods below that might be able to help you with your problem:

  1. Check you namespace/canvas page if it is correct at the application setting. Double check this one to be sure.
  2. Specify a page of your choice of your domain to redirect to, you can use something like this:

$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.

Related Questions