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” from accessing a frame with origin “http://www.example.com”. 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://wordpress.org/plugins/really-simple-facebook-twitter-share-buttons/
The topic ‘Facebook like button reports Javascript error’ is closed to new replies.