Page 1 of 1
Facebook
Posted: Mon Feb 11, 2013 1:55 pm
by qw
Today I studied the source of my Facebook page. Talking about obscurity! Impossible for a mere mortal to comprehend.
Re: Facebook
Posted: Mon Feb 11, 2013 2:22 pm
by Combuster
They have a habit of preventing people to emulate "like" clicks...
Re: Facebook
Posted: Wed Feb 13, 2013 1:21 am
by phillid
Ah, Facebook.
I was writing some software that would log into 0.facebook.com (because it's lightweight and really easy to parse) as myself and act as a proxy, fetching any URL someone messaged me and replying to them with the page content (so they could sort-of get free internet on their phone through 0.facebook.com). All of a sudden, I'm getting a redirect to an HTTPS page when I try and use HTTP... oh the pricks at Facebook
I cannot be bothered writing my software to use an SSL connection, it's not worth it any more.
Hobbes wrote:Today I studied the source of my Facebook page. Talking about obscurity! Impossible for a mere mortal to comprehend.
I too have gone through the code, you're right; it's a complete nightmare. It makes you wonder how readable their code is before the page is prepared to be sent to you...
Re: Facebook
Posted: Wed Feb 13, 2013 5:35 am
by qw
They probably have some automatic obfuscator. I mean, their developers do not have to work with this, do they?
Re: Facebook
Posted: Thu Feb 14, 2013 1:03 pm
by AbstractYouShudNow
I think that they just have pretty looking code that they make ugly through PHP. In fact, I think that they only write blocks of pages, which are assembled by PHP pages, with eventually an obfuscator processing the output.
If you really want to interact with Facebook, I think that the best way to do so is to use the official Facebook API's
Re: Facebook
Posted: Sat Feb 23, 2013 2:44 pm
by qw
I must admit that what is displayed in my browser is far from obfuscated. Very neat and accessible. I like it.
Re: Facebook
Posted: Thu Feb 28, 2013 12:28 am
by phillid
I use Firefox, and I must say, addons such as Firebug (I'm sure there are similar ones for other browsers) make wading through a website's code so much easier... I'm looking Facebook's code right now with no real difficulty.
I've noticed that they have a block of code where each line of Javascript is in a separate set of <script></script> tags... Bandwidth wasting to the max?