Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Given URL is not allowed by the Application configuration

I am trying to create facebook sign-in page according to this tutorial. I only changed the two lines

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

and I get the following 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.

What might be the problem?

like image 277
Slazer Avatar asked May 02 '13 19:05

Slazer


People also ask

How do you fix Facebook apps 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 sub-domains of your app to the App Domains field in your app settings.

What does it mean when it says URL not supported?

Unsupported URL" You would receive this error if you are having issues with your data or internet connection, especially with certain WiFi connections. We would advise turning Airplane mode on, then off, to help reset your connection.


3 Answers

The problem is that whatever url you are currently hosting your app is not setup in your Application configuration. Go to your app settings and ensure the urls are matching.

Updated

Steps:

  1. Go to 'Basic' settings for your app
  2. Select 'Add Platform'
  3. Select 'Website'
  4. Put your website URL under 'Site URL'

enter image description here

like image 64
phwd Avatar answered Nov 12 '22 13:11

phwd


This can also happen when the redirect_uri submitted with the https://www.facebook.com/dialog/oauth request is not present in the list of Valid OAuth redirect URIs under:

  • Settings >> Advanced >> Security

After much trial and error, when I added the redirect_uri that I was using (https://www.facebook.com/connect/login_success.html in my case), I suddenly got to the step past this error.

like image 32
David Alpert Avatar answered Nov 12 '22 11:11

David Alpert


The above answers are right, but you have to make sure you input right URL.

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

  1. Select your app
  2. Click settings
  3. Enter contact email (for publishing)
  4. Click on +add platform
  5. Add your platform (probably WEB)
  6. Enter site URL

You have two choices to enter: http://www.example.com or http://example.com

Your app will work only with one of them. In order to make sure your visitors will use your desired url, use .htaccess on your domain.

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

Enjoy!

like image 10
Armand Avatar answered Nov 12 '22 11:11

Armand