Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
10.7k views
in Plugins by

I am using Facebook Login v1.1.5 by Question2Answer. I entered my Facebook App ID and Facebook App Secret. The status of my app created is : This app is live (Visible to all users). What should I do next, did input it wrong in "Select how your app integrates with Facebook".  I will attach a screen shot on the status. My main url for question to answer is www.asknoypi.com/ask

I have 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.

 

 

Q2A version: latest

1 Answer

+1 vote
by
selected by
 
Best answer

On the Facebook app dashboard :

- in the "App Domains" field put : asknoypi.com

- in the "Website with Facebook login"  section, in the "Site URL" field put (for example) :

http://www.asknoypi.com/ask

This value must be equal to the value in the "Preferred site URL" field on q2a (admin panel settings). In this case the "Preferred site URL" of your site should be also : http://www.asknoypi.com/ask

- you do not need to fill the other sections ("App on Facebook" and "Mobile Web")

 

 

 

by
I got the same 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 also did what you told me, they both the same.
by
I modified to "App Domains" field put : asknoypi.com and I am not getting the error, but If I click the button, a pop up will show then disappears and I can't sitll login.
by
Clear your browser cache
by
I guess we are not the same error.
by
edited by
I've done a test on you website.
I had also the popup that was disappearing immediately : just logout from facebook and try again the login with facebook on your website, and this behaviour will disappear (have you cleared your browser cache before ??) (but this is another issue....)
After that I've tried to log in with facebook : I've received an ssl connection error...
I see a redirect from facebook to https://www.asknoypi.com.
Are you using somewhere ssl on your website ?

Even before logging in, I can notice on your website some calls to https URLS that fail.
For example :
https://www.asknoypi.com/ask/qa-plugin/new-members-widget/qa-new-members.css   ---> error
https://www.asknoypi.com/ask/qa-plugin/q2am-recent-questions/qa-recent-questions.css  ----> error

Do you want to use ssl somewhere ?
If yes, is it correctly enabled on your web server ? (and is the "Site URL" you've set up on facebook a "https" URL or a "http" URL ?)
If you do not want/need to use SSL, check why there are some ssl calls around...
by
First of all, I like to thank you for extending your help and discussed with me all the possible issues I have, also for taking extra mile in seeing the errors. Also for registering to the site :) greatly appreciated. You are a great man!..thank you.
by
I'm glad to know you've solved your problem...
by
What about if the domain is a subdomain??
by
A subdomain does not change the domain name. Only the fields containing an URL must be modified accordingly
...