The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Even More Work on the Facebook interface

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Even More Work on the Facebook interface Posted: May 8, 2009 9:31 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Even More Work on the Facebook interface
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

I had a fairly unpleasant day, so it was relaxing to sit down this evening and get back to work on my interface to the Facebook API. I've cleaned up the way the API functions respond; whenever you invoke a method like friends.get, you'll either get the result documented on the API pages, or an error object (as documented there as well). If there's an error at the network level, you'll still get an error object, but it'll be generated by the Smalltalk interface itself.

That gives me a lot more predictability in the code - it's much clearer what will come back when APIs are called. So here's an example call:


connection := Connection withSecretHolder: holder.
connection login.
connection authGetSession.

groups := connection groupsGetByGroups: #() andUID: nil.

That responds with something like this:

That's a collection of Group objects, each of which has a bunch of data stuffed into it. It's getting to the point where I can do real things with this :)

Technorati Tags: ,

Read: Even More Work on the Facebook interface

Topic: Duke Nukem Never Previous Topic   Next Topic Topic: Speaking of Bad Ideas...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use