In this recipe, we're going to load information about a Facebook object from an FQL table. Specifically, we're going to replicate the data requests from the previous chapter's recipe, Loading a Graph API object, which pulled information from the Graph API about the Fan page for the 'Facebook Platform', a Graph API object with an ID of 19292868552
.
In this recipe, and all of the recipes in this chapter, we'll require the same basic setup and Facebook authentication code discussed in the previous chapters. Specifically, our application will need a basic interface to display the results of our queries, and for our own sake, a display of the FQL query itself.
Create an application interface, which includes two main components—a TextArea component with an ID of results_display
and a RichText component with an ID of query_display:
Our application should be built on top of the ApplicationBase
class, which is detailed in the recipe Creating the ApplicationBase class...