Title: Facebook like button reports Javascript error
Last modified: August 21, 2016

---

# Facebook like button reports Javascript error

 *  Resolved [bwooster47](https://wordpress.org/support/users/bwooster47/)
 * (@bwooster47)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/facebook-like-button-reports-javascript-error/)
 * When using this plugin and the facebook like button, just loading a page shows
   this error in the Javascript console on Chrome browser:
     Uncaught SecurityError:
   Blocked a frame with origin “[http://www.facebook.com&#8221](http://www.facebook.com&#8221);
   from accessing a frame with origin “[http://www.example.com&#8221](http://www.example.com&#8221);.
   Protocols, domains, and ports must match.  This is related the the facebook like
   button, most probably. Seems like this may be a Facebook script problem. The “
   like” action seems to work anyway, but would be nice if this error could be avoided.
 * I noticed this plugin may not be creating the right html – it is missing the 
   http? It generates this:
     <div class=”really_simple_share_facebook_like” style
   =”width:100px;”><iframe src=”//www.facebook.com/plugins/like.php?href=http%3A%
   2F%2Fwww.example.com
 * Note the src=”//www.facebook.com” which seems wrong (though it will work, since
   http is default protocol?)
 * Related, unresolved stackoverflow topic: [facebook-iframe-tries-to-access-other-iframes](http://stackoverflow.com/questions/17475946/facebook-iframe-tries-to-access-other-iframes)
 * [http://wordpress.org/plugins/really-simple-facebook-twitter-share-buttons/](http://wordpress.org/plugins/really-simple-facebook-twitter-share-buttons/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [bwooster47](https://wordpress.org/support/users/bwooster47/)
 * (@bwooster47)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/facebook-like-button-reports-javascript-error/#post-4388856)
 * Finally got a better error message from the Javascript console!
 * This error was due to a Chrome Extension – “Allow Right Click”.
 * So the code in this plugin is all fine. Disabling the bad extension made the 
   error go away.
 *  [whiletrue](https://wordpress.org/support/users/whiletrue/)
 * (@whiletrue)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/facebook-like-button-reports-javascript-error/#post-4388874)
 * Perfect! Thanks for reporting it!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Facebook like button reports Javascript error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/really-simple-facebook-twitter-share-
   buttons_96bbf2.svg)
 * [Really Simple Share](https://wordpress.org/plugins/really-simple-facebook-twitter-share-buttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-facebook-twitter-share-buttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-facebook-twitter-share-buttons/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-facebook-twitter-share-buttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-facebook-twitter-share-buttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-facebook-twitter-share-buttons/reviews/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [whiletrue](https://wordpress.org/support/users/whiletrue/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/facebook-like-button-reports-javascript-error/#post-4388874)
 * Status: resolved