?

Log in

No account? Create an account
What pleaseremove hasn't said about his recent blog upgrade is… - 'Twas brillig, and the slithy toves did gyre and gimble in the wabe — LiveJournal [entries|archive|friends|userinfo]
Thomas

[ website | Beware the Jabberwock... ]
[ deviantArt | the-boggyb ]
[ FanFiction | Torkell ]
[ Tumblr | torkellr ]

Links
[Random links| BBC news | Vulture Central | Slashdot | Dangerous Prototypes | LWN | Raspberry Pi]
[Fellow blogs| a Half Empty Glass | the Broken Cube | The Music Jungle | Please remove your feet | A letter from home]
[Other haunts| Un4seen Developments | Jazz 2 Online | EmuTalk.net | Feng's shui]

[Sunday 15th April 2012 at 8:55 pm]
Thomas

boggyb
[Tags|, ]
[Playing |Morphing Thru Time ~ Enigma/Love Sensuality Devotion: The Greatest Hits]

What pleaseremove hasn't said about his recent blog upgrade is just how he's pushing the posts to Facebook. He's not using the Facebook API - instead, he's horribly abusing their mobile interface. Having spent the day trying to write a desktop client for Facebook, I fully sympathise with him.

The authentication sequence and low-level communication is actually quite straightforward. Authenticating needs an embedded instance of Internet Explorer to handle the login (because it's all done via web pages), but that only takes a few lines of code to achieve. Retrieving data is also reasonably easy to achieve and the Microsoft Scripting API works quite nicely for decoding the JSON. So far so good.

The fun part is then making sense of everything. What I want to do is grab the news feed and display that (later on I intend to filter it, but for now I just want the lot). Unfortunately the news feed returned is missing a fair number of updates (like any status updates made through the website). Except when it contains updates that aren't on the actual Facebook webpage. And the objects are missing fields that are specified in the documentation (like, for example, the name field on photos). Except when the fields are actually present with different names. Except when the information needed isn't available at all, despite the Facebook website showing it.

Oh, and I lied about the authentication being straightforward. It involves a maze of twisty permissions, all unclear.
Link | Previous Entry | Share | Next Entry[ Penny for your thoughts? ]