Simple query parameter to blank pages with Facebook comments(darknerd.co.uk)
darknerd.co.uk
Simple query parameter to blank pages with Facebook comments
http://www.darknerd.co.uk/fun-with-facebook/
7 comments
http://forum.developers.facebook.net/viewtopic.php?id=60571
http://bugs.developers.facebook.net/show_bug.cgi?id=9777#c66
So, the problem is framebusting code not playing well with iframes. ;-)
http://bugs.developers.facebook.net/show_bug.cgi?id=9777#c66
So, the problem is framebusting code not playing well with iframes. ;-)
Facebook doesn't want people to enable cross domain authentications/spoofing. If Facebook enabled their plugins to work inside iframes external to the Facebook environment, it'd be easy to maliciously authenticate users to give data to a fourth party.
I wonder how they discovered this, and whether this is truly a problem - when would someone come into a site with that hanging on their url?
I found out about this issue when a few users complained. It turns out google was indexing the pages, so sometimes those types of URLs would appear on a search page.
The simplest way to combat it is to have google ignore that parameter in google webmaster tools. Then it won't ever get indexed.
The simplest way to combat it is to have google ignore that parameter in google webmaster tools. Then it won't ever get indexed.
Looking at it through Chrome, it triggers a bunch of JS errors in the Facebook javascript plugin.
It's generating the errors because it's not detecting a parent container (cross domain iframe communication).
In order to do cross domain communication, Facebook iframes the current page with the fragment. When Facebook's javascript library in the iframe detects the parameter, it blanks the page to reduce the render time that it takes for the iframe to complete so that it can generate the cross domain communication channel faster.
Originally, Facebook had developers upload a file to act as the cross domain script but became a problem for some people who couldn't do this so for the most part. This is still doable, but most people don't read the documentation clearly and Facebook doesn't want to complicate it's message of a simple install( http://developers.facebook.com/docs/reference/javascript/FB.... ).