Note that there are some explanatory texts on larger screens.

plurals
  1. POfacebook and twitter iframes requesting access set 'document.domain' error
    text
    copied!<p>I'm putting Tweet and Facebook Like buttons on the project im working. Everything seems to be working but when click the btns I get this JS error:</p> <pre><code>Unsafe JavaScript attempt to access frame with URL http://platform.twitter.com/widgets/tweet_button.1357735024.html#_=1357834238249&amp;count=none&amp;id=twitter-widget-0&amp;lang=en&amp;original_referer=http%3A%2F%2Fwww.sandals.com%2Fmain%2Fnegril%2Fne-home.cfm&amp;size=m&amp;text=Negril%2C%20Jamaica%20All%20Inclusive%20Vacation%20-%20Sandals%20Negril%20Beach%20Resort%20%26%20Spa&amp;url=http%3A%2F%2Fwww.sandals.com%2Fmain%2Fnegril%2Fne-home.cfm&amp;via=SandalsResorts from frame with URL http://www.facebook.com/plugins/like.php?locale=en_US&amp;app_id=150389325070106&amp;href=www.sandals.com/main/negril/ne-home.cfm&amp;send=false&amp;layout=button_count&amp;width=60&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21. The frame requesting access set 'document.domain' to 'facebook.com', the frame being accessed set it to 'twitter.com'. Both must set 'document.domain' to the same value to allow access. </code></pre> <p>this is the code im using for fb and twitter</p> <pre><code>window.fbAsyncInit = function() { // init the FB JS SDK FB.init({ appId : '150389325070106', // App ID from the App Dashboard channelUrl : '//www.sandals.com', // Channel File for x-domain communication status : false, // check the login status upon init? cookie : true, // set sessions cookies to allow your server to access the session? xfbml : true, // parse XFBML tags on this page? frictionlessRequests: true }); // Additional initialization code such as adding Event Listeners goes here }; // Load the SDK's source Asynchronously (function(d, debug){ 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" + (debug ? "/debug" : "") + ".js"; ref.parentNode.insertBefore(js, ref); }(document, /*debug*/ false)); // Twitter Btn JS !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs"); </code></pre> <p>i followed the steps in fb dev site but still get those errors :S</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload