Not a valid domain facebook on localhost - facebook

I cannot seem to run the facebook app on localhost. Whenever I try my domain, i get the error " App domains must match the domain of the facebook web games URL(https). Please connect these domains: localhost.

Your facebook app domain should be from App Url.
So change your App url to - http://localhost:port_num
Will work.

Related

Facebook app: Cannot add localhost domain with my live server domain

Whenever I tried to add localhost domain with my live server domain in my facebook app domain it shows me error "App domains must match the domain of the Facebook Web Games URL (https), Mobile Site URL, Unity Binary URL, Site URL or Secure Page Tab URL. Please correct these domains: localhost".
Is it possible to add the localhost domain along with my live server domain?
A good way to solve this is to use a Test App: https://developers.facebook.com/docs/apps/test-apps/
Test Apps have different settings, so you can easily use localhost without an additional platform as workaround.

using meteor's accounts-facebook, i get a url error

I set the url for my app as http://localhost:3000
and I get this error
Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.
my app domain is empty, since fb doesnt let me set it to localhost:3000
I'm totally lost..
In the settings of your Facebook app, you need to add "localhost" as an App Domain, not "localhost:3000". You don't need to include the port with the hostname.

Setting up Facebook App Domain as IP Address

I have a login with facebook on my website which I was testing locally on localhost. Now I have put it on a server and I am trying to change the facebook app configuration so I could make the login. Before I had:
App Domain:
localhost
Site URL:
http://localhost/
Mobile URL:
http://localhost/
Now I am trying to change localhost for my website IP address: 107.170.**.**7:8776, so first I set the Site URL and Mobile URL to http://107.170.**.**7:8776/ but when I try to set the App domain to 107.170.**.**7:8776 I get an exclamation saying:
This must be derived from Canvas URL, Secure Canvas URL, Unity Binary URL, Site URL, Mobile Site URL, Page Tab URL or Secure Page Tab URL. Check and correct the following domains: 107.170.**.**7:8776
What am I missing here?
Thanks in advance.
Facebook appears to require a valid domain instead of an IP address. Not sure why, as they don't mention this in the facebook developer docs anywhere (from what I can tell)
More info:
facebook Error App Domain: [IP Address] is not a valid domain.?

Facebook url not allowed with web, works with cordova

We've got a combination phonegap/web app, and am trying to get facebook logins working.
Everything works fine with phonegap, but with the web, Facebook returns the familiar (to many) Given URL is not allowed by the Application configuration...
I've tried using localhost in the Facebook settings, as well as setting up a host on my local machine which used the same URL as our heroku development box (except it has https, which I don't, of course).
I didn't include the port number in the website with facebook login, when using the host as heroku, but tried both with and without on localhost.
Things I've tried
locally - http:localhost:3000 // the app
on facebook
website with facebook login -> http://localhost, http://localhost:3000
app domains -> localhost
locally - http://our-dev-site.herokuapp.com:3000 //the app
on facebook
website with facebook login => http://our-dev-site.herokuapp.com, http://our-dev-site.herokuapp.com:3000
app domains -> our-dev-site.herokuapp.com
I'm really not sure what else to try here.
Is there somewhere in the facebook responses that they tell you what URL they are expecting?
-------------- update --------------------
I forgot that our javascript files are actually being served on another port number. The domain for the app is localhost:3000, but the javascript is served from localhost:8080. Not sure if this could be part of the problem.

Given URL is not allowed by the Application configuration

I've been testing my app using my company's domain (which has ssl installed) and works like a charm.
now, I want this app to have its own domain, server and SSL certificate. I purchased a Godaddy SSL certificate(Standard (Turbo) SSL) and asked my hosting to install it, which they did and seems to be working ok...
now when I change the Facebook App settings to my new server, it just fails to load, and the console just outputs "Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. "
Im completely lost on what to do... the settings are like this
Im loading FB using the facebook-actionscript-api 1.8.1
Namespace: myfbapp
App domains: myfbapp.com www.myfbapp.com
Sandbox: disabled
Canvas URL: http://www.myfbapp.com
Secure c url: https://www.myfbapp.com
needed to get a dedicated IP for my game and attach the SSL to it