Facebook App ID - facebook

I have made a website app linked with facebook and I have decided to host it myself using WAMP. I have a domain that is forwarding to my ip and In the facebook app settings, i've changed the app domain and website URL as my new domain. I have also changed the channel URL in my html files, but when I use anything on the site such as login, it throws up an 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 permitted by the application configuration."
Is this being shown because all the domain is doing is redirecting to my IP?
-Any advice would be much appreciated. (This is for a college project)

If the domain is redirecting to an IP on your machine, and that it's the IP who's displayed in your address bar. e.g.: 127.0.0.1:8000/app.php
Then you need to add this IP as the domain (and not the URL who's only redirecting to your IP)

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.

Not a valid domain facebook on localhost

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.

Meteor accounts-facebook not working on server

I have followed the this tutorial (http://bulenttastan.net/login-with-facebook-using-meteor-js/) to setup Meteors accounts-facebook package. The application worked fine while working on the local environment(localhost).
Now that I have hosted the app on my server I have the following configuration on my Facebook Apps Dashboard.
But when I try to login from my application I receive the following error message:
"URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs."
My app is hosted on the port '3002' so, I have set the port along with the domain name on the Site URL section on facebook and with respect to the site URL I have also set the redirect URI as given on the image.
Thanks in Advance.
Found a Fix! Setting the ROOT_URL environment variable did the trick for me.

Facebook Application Privacy policy

A web appliction is running on my local machine (can't be accessible from Internet, it is a developer site, not the production one), e.g. URL:1 http://myapp.com.
I want to configure a Facebook app on my web application. Created Facebook application, App > App Details, at Privacy Policy URL given URL:1 this message appeared:
"You must submit a valid Privacy Policy URL in order to be compliant with Facebook Platform. Request failed with error: Can't Download: Could not resolve the hostname into a valid IP address."
My application is a development site. I can't expose it on a public domain. I don't have Privacy Policy URL on public domain. What would be the best solution?
It has to be accessible and public. You can´t enter a link that only runs on your local machine, Facebook obviously can´t check if it´s there.

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.?