Unable to login to Facebook when running App locally - facebook

I have the facebook javascript in my page. When I click on the button, I get this error
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.
I'm attaching my settings for my app.
http://dev.vibecheck.com:8080/vibecheckdata/vibeCheck
I have changed my host files and added an entry which maps to dev.vibecheck.com Any clues why I'm getting this error ?

The issue was with an setting in advanced Panel. The Oauth re-direction URL had a different domain than the one which I was running it on. So Please make sure that all the domains and the all the URLs you have match.

Related

Facebook pmd system: Given URL is not allowed by the Application configuration

We are developing a Facebook PMD system,but when we upload the link through API,we get this error:'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' .
We did what people say: add link in Site URL and the issue was solved.
But since we are a PMD system,it should allow different users to add different links in our system.But 'Site URL' can only add one link.
What should we do?
You can only use one Site URL per App. Subdomains will work too (you can just add the topl level domain to the App Domains), but you can´t use different domains with for the same App....if that´s what you are trying to do. Your customers would need to create their own App for that.

log in to Facebook button from a chrome extension

I have a chrome extension hosted on Google servers.
I am trying to add an option to login with FB on my extension (using parse.com js sdk to do so)
Seems to work fine , until the following message pops up from FB :
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.
I came to realize that the issue is the site URL that i've entered in the app configurations on FB.
What URL do i need to enter in this case ? Nothing seems to work.
I don't really have a site , but a simply extension hosted on google .

unity webgl facebook login error

So I have a problem when I try login in to facebook with FB.login in javascript. I get a popup saying
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.
Ive seen a lot of people having this issue, and answer about it,
so Ive tried to changes the setting of my facebook app.
1) put localhost in app domains
2) add a website platform and localhost in url
3) enable embedded browser oauth login
4) add localhost in valid oauth redirect urls
and nothing worked. i tried also with http:// localhost instead of just local host.
Im using apache server to test my app,
you guys have any idea how to do it properly?

Facebook app error - Given URL is not allowed by the Application configuration

I've been doing a lot of facebook apps until now and everytime I had them on the same domain. No issues on any of them.
Now I started using another domain, I have the comodo SSL, but my apps are not working correct.
Evertything is setuped same like I did on the old domain.
Basically the first page of the app loads and than when I click to go to another page, I see in the link bar that it goes to:
http://domain.com/app_name/folder/request.php?code=AQCYkHOF0b3D755VtSWei498C13SvlF_bZ3GjUk8LnwBBQbaCAE9j1bPAkyyxId6hLbCv0-PuwfTkdjxn8sKmLnyL8ltYzg1nf5XD1lo1SPipHet-ZIMfuUWnqSmAJj9Mo2fB6mlUREBV7Lahh5k0MJTyERSDQ8IWrLJQqGmuq0oKe1L_IR1ZgIN1uLYmRXeq9ukRAFc463AcVXdIeLbkFmC2Y8nG8CdEshuA8oVWOgH9ezMFm0H8IVkcKKCJtDp9lSg6XxpL-5gHwPkxw5_e2xflEWrQp3NClBLNN9rOC4rY10yUqUrkTPMSAeGttnYwOo&state=ba25dbfe845349d548c04f6ba14deef8#_=_
redirects to the first page and in the console I get this message
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.
I get this message in the console and when I open the app on the first page.
In the facebook developers I setuped the:
- canvas page
- website
- page tab
Practically I did same like I was doing on the old domain, now if I move the app on the old domain and modify the path in the facebook devleopers is working fine.
Any thoughts?
You need to set the domains of the app in the developers site
If you try to run FB.init in the Javascript SDK from a page in a domain other that the ones you've set - you'll get this error
Note that you can only set domains that are mentioned in one of the following settings in the Facebook developers site:
Canvas URL
Website URL
Page Tab URL
Setting the domain should be as follow:
If your app loads from http://sub.domain.com/ you can put either domain.com or sub.domain.com - I recommended setting the highest level that you have administrative permissions for (if you're hosting on http://myaccount.some-service.cloud-provider.com don't put cloud-provider.com because if you do - all the other clients of that provider will be allowed to use your app id using the JavaScript SDK)

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings

This error appears in the authentication process:
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.
Why is this happening, and how can I fix it?
I ran into this issue when I was doing some learning exercises a few days ago while creating a Facebook app and using Heroku as the host. My problem was that I had the wrong URL in my Facebook app settings for the "Website with Facebook Login" field value.
Also, for some hosts the URL may change depending on settings etc., so check your hosting URLs for the app and make sure you have the correct URL in that field on Facebook app settings.
Once I updated mine, the error went away and all is fine.
Good Luck!
Connie
If you are on your development machine, be sure that you don't mix up localhost:3000 with 0.0.0.0:3000. Although on your development machine it is practically the same thing, the Facebook API won't recognise this and will return the error. Make sure the url is exactly the same everywhere.