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

pawan picture pawan · Apr 29, 2012 · Viewed 18.1k times · Source

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.

Answer

user1452376 picture user1452376 · Apr 24, 2013

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!