Tomás Lin’s Programming Brain Dump

Flex, Grails, Facebook, iPhone and all that Jazz

Posts Tagged ‘FQL

Calling FQL with the Facebook / Flex API

with 3 comments

FQL is the query language used in Facebook to access tables and relationships. All the top level calls available within facebook APIs ( such as getFriends() ) are simply wrappers around FQL calls. In this post, I will show you how to use the newly released Adobe Flex / Facebook API to invoke FQL commands.

A simple FQL shell

Read the rest of this entry »

Written by Tomas Lin

May 10, 2009 at 9:21 am

Posted in Uncategorized

Tagged with , ,

More Efficient Facebook / Flex API – using XML and e4x instead of ActionScript Objects

with 5 comments

I’m a big fan of the e4x implementation in Flex. Elegant and powerful, it allows a versatile and dynamic way of passing data across components. In this post, I’ll describe how to access data in this raw XML format within the newly updated Facebook / Flex API.

If you’re a fan of the way Flex handles XML via e4x, you’re probably disappointed that all the new examples posted on the Adobe developer connection create new ActionScript objects to represent facebook instances. In this post, I’ll briefly describe how to work with XML instances directly and describe some of benefits of this approach. Read the rest of this entry »

Written by Tomas Lin

May 9, 2009 at 7:01 pm

Posted in Uncategorized

Tagged with , ,