facebook - Localhost testing stopped working - what changed? -


i developing fb app using fb js sdk , flask. last time checked app on localhost testing week before end of semptember, , worked fine.

i got app today , got this:

curses! given url not allowed 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.  

i had configuration working 2 weeks ago has changed really?

code:

function fblogin(handle) { window.fbasyncinit = function() {  if (debug) console.log("start login");  fb.init({   appid : xxxxxxxxxx,//app_id,// app id   //channelurl : channel_url, // channel file    channelurl : '//127.0.0.1:5000/channel.html', // channel file    status     : true, // check login status   cookie     : true, // enable cookies allow server access session   xfbml      : true  // parse xfbml });  if (debug) console.log("login status");  fb.getloginstatus(function(response)  {     if (debug) console.log("get login status");      if (debug) console.log(response);      if (response.status == 'connected') {         if (debug) console.log("connecto!");         getuser(handle);         getfriends();     }      else if (response.status === 'not_authorized')      {         if (debug) console.log("not auth");            fbloginapi();     }      else      {         if (debug) console.log("not logged!");            fbloginapi();     } }, true);      };  (function(d){     var js, id = 'facebook-jssdk', ref = d.getelementsbytagname('script')[0];     if (d.getelementbyid(id)) {return;}     js = d.createelement('script'); js.id = id; js.async = true;     js.src = "//connect.facebook.net/en_us/all.js";     ref.parentnode.insertbefore(js, ref);  }(document)); } 

site url: http: //127.0.0.1:5000/ canvas url: http: //127.0.0.1:5000/

i can't set secure url https: //127.0.0.1:5000/ gives me:

misfire secure canvas url cannot facebook url. 

i tried starting app foreman , without ssl , still not work.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -