TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Simple query parameter to blank pages with Facebook comments

15 pointsby intranationalmost 14 years ago

4 comments

changcommaalexalmost 14 years ago
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.<p>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.<p>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( <a href="http://developers.facebook.com/docs/reference/javascript/FB.init/" rel="nofollow">http://developers.facebook.com/docs/reference/javascript/FB....</a> ).
nbpoolealmost 14 years ago
<a href="http://forum.developers.facebook.net/viewtopic.php?id=60571" rel="nofollow">http://forum.developers.facebook.net/viewtopic.php?id=60571</a><p><a href="http://bugs.developers.facebook.net/show_bug.cgi?id=9777#c66" rel="nofollow">http://bugs.developers.facebook.net/show_bug.cgi?id=9777#c66</a><p>So, the problem is framebusting code not playing well with iframes. ;-)
评论 #2588366 未加载
pavel_lishinalmost 14 years ago
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?
评论 #2588587 未加载
waterside81almost 14 years ago
Looking at it through Chrome, it triggers a bunch of JS errors in the Facebook javascript plugin.
评论 #2588372 未加载