News for hackers. Stuff that matters.
Re:Simple query parameter to blank pages with Facebook comments by changcommaalex on Thursday May 26, 2011 @12:39PM (#2588351)
This is working as designed. The author of the article didn't fully investigate why he was getting users with the fragment and if he alters his code, will negatively affect page performance on his page.

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.... ).

Re:Simple query parameter to blank pages with Facebook comments by nbpoole on Thursday May 26, 2011 @11:35AM (#2588098)
Re:Simple query parameter to blank pages with Facebook comments by changcommaalex on Thursday May 26, 2011 @12:41PM (#2588366)
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.
Re:Simple query parameter to blank pages with Facebook comments by pavel_lishin on Thursday May 26, 2011 @11:25AM (#2588058)
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?
Re:Simple query parameter to blank pages with Facebook comments by jreposa on Thursday May 26, 2011 @01:22PM (#2588587)
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.

Re:Simple query parameter to blank pages with Facebook comments by waterside81 on Thursday May 26, 2011 @11:22AM (#2588047)
Looking at it through Chrome, it triggers a bunch of JS errors in the Facebook javascript plugin.
Re:Simple query parameter to blank pages with Facebook comments by changcommaalex on Thursday May 26, 2011 @12:42PM (#2588372)
It's generating the errors because it's not detecting a parent container (cross domain iframe communication).