I am working on a Rails 4 app. On my laptop, development is done at localhost:3000
. The actual domain of the site is roomidex.com
.
How can
June 2015
Go to My Apps > Settings > Basic
It didn't work with port 80 or without any port unfortunately.
Just create two applications.
One for testing and one for release. You cannot supply the app with separate URL configurations.
Your error is saying
localhost URL is not allowed in the application
I know, FB does not give a s**t about explaining, what do to in those moments, however, as far as I am concerned, I have found workaround.
Basically, you need to "whitelist" locahost url in your app
Here is what you are going to do
roomidex.com
, so add another address localhost
app integrates with Facebook
(website with facebook login, App on facebook, Mobile web, …)Website with facebook login
, and my test, localhost URL, either into App on facebook
or Page tab
Just edit your hosts file with your domain that pointing to localhost and it should work fine.
On the Facebook App page, click "edit App" then click "Advanced" in the left-hand navigation. Then for "Valid OAuth redirect URIs" add http://localhost:3000
... or whatever you want the accepted redirect to be.
Adding localhost
to the Valid OAuth redirect URIs
in the test app did not work for me but adding 127.0.0.1
did.