Ruby on Rails, Facebook login button - given url is not permitted error -
i've been trying long time working, without success. in oauth.yml file app_id , secret_id match facebook app settings. i've rebooted server in case there's outstanding configuration issues. problem?
i keep getting:
given url not permitted application configuration.: 1 or more of given urls not allowed app's settings. must match website url or canvas url, or domain must subdomain of 1 of app's domains here's screenshot of facebook app settings: 
my fb.init.html.erb file looks this:
<div id="fb-root"></div> <script> window.fbasyncinit = function() { // console.log("fbinit file"); fb.init({ appid : '<%= oauth_config['facebook']['app_id'] %>', status : true, cookie : true, xfbml : true, oauth : true }); }; (function(d){ // console.log("fbinit file2"); var js, id = 'facebook-jssdk'; if (d.getelementbyid(id)) {return;} js = d.createelement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_us/all.js"; d.getelementsbytagname('head')[0].appendchild(js); }(document)); </script> thanks help.
so looks app id provided in screenshot , 1 gets passed facebook differ.
in screenshot starts 144574... , request
https://www.facebook.com/dialog/oauth?display=popup&domain=populisto.com&scope=email&e2e=%7b%7d&app_id=378201315578308&locale=en_us&sdk=joey&client_id=378201315578308&redirect_uri=http%3a%2f%2fstatic.ak.facebook.com%2fconnect%2fxd_arbiter.php%3fversion%3d25%23cb%3df1f01bac64%26origin%3dhttp%253a%252f%252fpopulisto.com%252ff27e5c37e8%26domain%3dpopulisto.com%26relation%3dopener%26frame%3df25e63bce&origin=1&response_type=token%2csigned_request so app_id 378201315578308
Comments
Post a Comment