CakePHP Facebook Plugin: API Error Description: The specified URL is not owned by the application.
During the development of Nouchi.Mobi where i use this quite useful Facebook plugin (get it, it’s the best!), i ran into an issue trying to authenticate my localhost server against my Facebook app settings. I’vre created a virtual host entry in Apache pointing to my local project folder, edited my /etc/hosts file with a new “indexdot.dev” entry but i could not add that url to the Facebook app App Domain settings. The qualified domain name for my app in the Facebook settings was nouchi.mobi, and trying to login from my local app I would get this message;
API Error Code: 191
API Error Description: The specified URL is not owned by the application.
Error Message: redirect_uri is not owned by the application.
The solution was quite simple actually, thanks to this post, I added local.nouchi.mobi to my /etc/hosts file, created a virtual host entry in Apache pointing to my application folder and finally, added local.nouchi.mobi as a additional domain entry in my App Domain settings in Facebook and voila!