How to identify if a webpage is being loaded inside an iframe or directly into the browser window?

I am writing an iframe based facebook app. Now I want to use the same html page to render the normal website as well as the canvas page within facebook. I want to know if I can determine whether the page has been loaded inside the iframe or directly in the browser? 19 s 19 … Read more

What’s the shebang/hashbang (#!) in Facebook and new Twitter URLs for?

I’ve just noticed that the long, convoluted Facebook URLs that we’re used to now look like this: http://www.facebook.com/example.profile#!/pages/Another-Page/123456789012345 As far as I can recall, earlier this year it was just a normal URL-fragment-like string (starting with #), without the exclamation mark. But now it’s a shebang or hashbang (#!), which I’ve previously only seen in … Read more

How does Facebook disable the browser’s integrated Developer Tools?

So apparently because of the recent scams, the developer tools is exploited by people to post spam and even used to “hack” accounts. Facebook has blocked the developer tools, and I can’t even use the console. How did they do that?? One Stack Overflow post claimed that it is not possible, but Facebook has proven … Read more