- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Facebook
They have a habit of preventing people to emulate "like" clicks...
Re: Facebook
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.
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.
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...Hobbes wrote:Today I studied the source of my Facebook page. Talking about obscurity! Impossible for a mere mortal to comprehend.
phillid - Newbie-ish operating system developer with a toy OS on the main burner
Re: Facebook
They probably have some automatic obfuscator. I mean, their developers do not have to work with this, do they?
-
- Member
- Posts: 92
- Joined: Tue Aug 14, 2012 8:51 am
Re: Facebook
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
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
I must admit that what is displayed in my browser is far from obfuscated. Very neat and accessible. I like it.
Re: Facebook
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?
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?
phillid - Newbie-ish operating system developer with a toy OS on the main burner