Facebooker not logging in on server (works locally)

63 Views Asked by At

I have these settings in my facebooker.yml file:

app_id: <app id>
secret: <secret>
api_key: <same as app id>
canvas_page_name:
callback_url: http://beta.mydomain.com:80/
pretty_errors: true
set_asset_host_to_callback_url: true

When I try to log in with FB I get the FB login popup, it logs in to FB in the background but my app does not log in. Same thing works fine locally with callback_url: http://localhost:3000. Any ideas?

Update: also tried callback_url: http://localhost:80 on server with no success

2

There are 2 best solutions below

0
On BEST ANSWER

This will sound stupid: the Site URL in the FB App settings was localhost:3000. I needed to set the correct domain. Although it now won't work on localhost, but that's another issue...

1
On

When you registered you app on facebook. What address did you put as your callback url?