Friday 15 May 2015

facebook - Canvas URL related error -


I am getting a canvas URL error as shown below, that is not clear about which I am not clear That's where it's coming from. I'm FB. Insert debug before and after the indeit and both are printed. My app is configured as "Website with Facebook Login" as "Selects that your app integrates with Facebook" and so I have no specific canvas URL anywhere (do this there is no substitute). The only thing is "app domain" and "site url" and both of them have been set on my website URL (www.blah-blah.com). After the error my code is down, but I do not know where the error below is coming from. Any ideas?

ERROR: "The given URL is not allowed by application configuration: One or more of the given URLs do not have permission from the app's settings, it must match the website URL or canvas URL, or the domain application One of the domains must have a subdomain. "

  & lt; Script & gt; Window.fbAsyncInit = function () {console.log ("hello"); FB.init ({appId: 'XXXX', // app ID channel url: '//www.XXXX.com/channel.html', // channel file status: true, // check login status cookie: true, / Enable cookies to allow the server to use session xfbml: true // parse XFBML}; console.log ("Hello2"); FB.Event.subscribe ('auth.authResponseChange', function (feedback) { Console.log (feedback); if (response.status === 'connect') {console.log ('connected case' ?? | '); TestAPI ();} and if (response.status === 'Not_authorized') {FB.login (); console.log ('not authorized' | '|');} Other {FBlogin (); Console log ('And case' ?? | ');}}};}; // Load asynchronous SDK (function (D, S, ID) {var js, fjs = d.getElementsByTagName (s) [0]; If (DAA Element BID (ID)) {returns;} JS = D. Socket agreement (S); js.id = id; js.src = "//connect.facebook.net/en_US/all" Js "; fjs.parentNode.insertBefore (js, fjs);} (document, 'script', 'facebook-jssdk')); function doLogout () {FB.logout (function) {//console.log ( Response); Warning ("Bye Bye ...");}); } Function testAPI () {console.log ('Welcome! Getting Your Information ....'); FBP ('/ m', function (feedback) {console.log ('good to see you,' + response.name + '.');}); } & Lt; / Script & gt;    

OK, I got the problem anyway in one of the URLs in the FB application settings By adding "http" to my problems magically fixed breathing.

No comments:

Post a Comment