This URL is not allowed by application configuration

I am trying to create a facebook login page according to this tutorial. I only changed two lines

appId : '370675846382420', // App ID channelUrl : '//http://bp.php5.cz/channel.html', // Channel File 

and I get the following error:

This URL is not allowed by application configuration. One or application settings settings are not allowed. This should match the website URL or canvas URL, or the domain should be a subdomain of one of the application domains.

What could be the problem?

+49
login facebook sign facebook-login
May 2 '13 at 19:02
source share
15 answers

The problem is that any URL that you are currently using in your application is not configured in your application configuration. Go to your application settings and make sure the URLs match.

Update

Steps:

  • Go to the "General" section for your application.
  • Select "Add Platform"
  • Select "Website"
  • Put the URL of your site in the "Site URL" field.

enter image description here

+73
May 2, '13 at 20:21
source share

This can also happen if redirect_uri sent with the request https://www.facebook.com/dialog/oauth is not in the list of valid OAuth redirect URIs below:

  • Settings → Advanced → Security

After much trial and error, when I added redirect_uri , which I used ( https://www.facebook.com/connect/login_success.html in my case), I unexpectedly got a step back this error.

+23
Oct 25 '14 at 18:06
source share

The above answers are correct, but you must make sure that you entered the correct URL.

You need to go to: https://developers.facebook.com/apps

  • Choose your application
  • Click Settings
  • Enter your contact email address (for publication)
  • Click + Add Platform
  • Add your platform (possibly WEB)
  • Enter site URL

You have two input options: http://www.example.com or http://example.com

Your application will work with only one of them. To make sure your visitors use your desired URL, use .htaccess in your domain.

Here's a good tutorial on this: http://eppand.com/redirect-www-to-non-www-with-htaccess-file/

Enjoy it!

+10
Apr 16 '14 at 11:34
source share

Go to your application, settings (main tab) and add the platform (website). Enter the URL of your site and do it.

+7
Feb 18 '14 at 10:36
source share

Perform the above work on adding a site and then the URL. I think the facebook layout has changed a bit, so do other things. - Go to developers.facebook.com → your application - Go to Settings-> Advanced. - According to security URI -> Valid OAuth, insert all uri to which your application should redirect. For example ( http://localhost:1443/cas/login, https://localhost:2443/cas/login, http://rajanpupa.com/cas/login , etc.) - This should do it.

+6
Jul 22 '14 at 3:17
source share

I ran into the same problem. I entered http://www.example.com in the application settings. When someone accessed my site using the full URL, Facebook Login worked fine. But if someone typed the URL without www in the browser using this error message, Facebook login failed. When I changed the application settings to http://example.com , everything started to work fine.

+2
Jul 18 '15 at 15:22
source share

The other answers here are excellent and accurate. In the interest of adding to the list of things to try:

Double and triple check that your application uses the correct application identifier and secret key. In my case, having tried many other things, I checked the application identifier and secret key and found that I was using our production settings in our development system. Doh!

Using the correct application identifier and private key resolves the issue.

+1
Mar 04 '15 at 18:46
source share

My problem is resolved

 public static final String REDIRECT_URI = "http://google.com"; 

it will be redirected to url after ur login to facebook. and also you must reach

url: https://developers.facebook.com → My application → (select your application) → Settings → Advanced settings → Valid OAuth URI redirect: " http://google.com ".

Instead of " http://google.com, you can host ur the appropriate Url.so project to redirect your page.

+1
Oct. 16 '15 at 11:49
source share

I got this error when trying to run a test webpage directly from the file "file: /// C: /webtests/myfile.htm". To fix this, I did not have to make any changes to the application settings. Instead, I just needed to host my HTML file on a real server, and then click it like this: " http: //localhost/myfile.htm ".

Hope this helps someone.

+1
Nov 04 '15 at 21:56
source share

Go to https://developers.facebook.com/apps and open the created application. open the settings tab and add the platform and insert the URL of the site where you want to share the facebook button. Done.

0
Mar 28 '14 at 13:19
source share

For me it was "Single Sign On" (can be seen at the bottom of the screen in the phwd response), which was disabled.

0
Dec 02
source share

I came across this using the IBM BlueMix Single Sign-On service and had to use BlueMix, the provided redirect URL, as my website URL, instead of my web application website URL, to fix it. As soon as I made this change, the problem disappeared.

0
Jun 05 '15 at 13:57
source share

This may be caused by an invalid application id.

In my ionic sample, I had the same problem, because in my ionic application a different “identifier application” was added, different from the identifier of the application that I received from the Facebook developer account.

therefore we must carefully insert relavent appID

0
Apr 27 '16 at 16:12
source share

I am using the Facebook Canvas platform ( Unity WebGL ) and I do not need to add a site platform. The only thing I did was add the root url of my website to:

  • Product
    • Facebook login
      • Valid OAuth Redirect URIs

Facebook Login Configurations

0
Jan 01 '16 at 3:49 on
source share

Things have evolved in the approach of Facebooks, now I realized that you need to “Add a product” to your application: facebook login. make sure oauth and web auth on add my own website url to the "Valid Auth redirect URI" (and deleted the default https://www.facebook.com/connect/login_success.html that it’s in

Without this, I get an error with a blocked URL.

0
Mar 10 '17 at 4:51 on
source share



All Articles