Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

API Error Code: 191, API Error Description: The specified URL is not owned by the application

I have just registered hostel6.in domain name with justhost.com, and I have facebook app in /fb/hogwarts_team folder.

I am using following setting in my app settings

App Domain:         hostel6.in
Site URL:           http://hostel6.in/fb/hogwarts_team
Canvas URL:         http://hostel6.in/fb/hogwarts_team/
Secure Canvas URL:  https://secure.justhost.com/~hostelsi/fb/hogwarts_team/

When I am using the app via url

apps.facebook.com/hogwarts_team/

I am getting error

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.

but when I am using app via url:

hostel6.in/fb/hogwarts_team/

everything works fine.

Apart from these settings I have used following code in fbmain.php

$fbconfig['baseUrl']    =   "http://hostel6.in/fb/hogwarts_team/" 

I have already read solutions on stackoverflow for similar question, but none have worked for me.

like image 524
pawan Avatar asked Apr 29 '12 18:04

pawan


1 Answers

If you are testing locally,Just add

  1. Localhost in the app domain box

  2. http://localhost:8080/ in the site url box.

This works for me!

like image 156
user1452376 Avatar answered Sep 21 '22 04:09

user1452376