I wanted to add facebook login option on my website, but always getting,
An error occurred with Abhishekmiet. Please try again later.
API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.
I'd set the following in my app setting: Site-url: http[://]ip_address Canvas url: http[://]ip_address/ (the square brackets removed after http) ip_address is my ip address in x.x.x.x pattern, have not posted my actual ip for security purposes.And i'm using the following php snippet for generating base url,
if($_SERVER['HTTP_HOST']=='localhost'){
$base_url='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
}else{
$base_url='http://'.$_SERVER['HTTP_HOST'];
}
I've tested it on both my local server and on my live server but always the same error.