FBGraphObjectPickerViewController
This class is no longer available in the most recent version of the SDK.
A more recent version of this class is available. Check out the latest version.

The FBGraphObjectPickerViewController class is an abstract controller object that manages the user interface for displaying and selecting a collection of graph objects.

Discussion:

When the FBGraphObjectPickerViewController view loads it creates a UITableView object where the graph objects defined by a concrete subclass will be displayed. You can access this view through the tableView property.

The delegate property may be set to an object that conforms to the FBGraphObjectPickerDelegate protocol. The delegate object will receive updates related to object selection and data changes. The delegate can also be used to filter the objects to display in the picker.

Inherits from:FBViewController
Declared in:FBGraphObjectPickerViewController.h
Properties
fieldsForRequest

Addtional fields to fetch when making the Graph API call to get graph object data.

@property (nonatomic, copy) NSSet *fieldsForRequest;
itemPicturesEnabled

A Boolean value that indicates whether pictures representing the graph object are displayed. Defaults to YES.

@property (nonatomic) BOOL itemPicturesEnabled;
session

The session that is used in the request for the graph object data.

@property (nonatomic, retain) FBSession *session;
spinner

Returns an outlet for the spinner used in the view controller.

@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *spinner;
tableView

Returns an outlet for the table view managed by the view controller.

@property (nonatomic, retain) IBOutlet UITableView *tableView;
Instance Methods
clearSelection

Clears the current selection, so the picker is ready for a fresh use.

- (void) clearSelection;
loadData

Initiates a query to get the graph object data.

- (void) loadData;
Discussion:

A cached copy will be returned if available. The cached view is temporary until a fresh copy is retrieved from the server. It is legal to call this more than once.

updateView

Updates the view locally without fetching data from the server or from cache.

- (void) updateView;
Discussion:

Use this if the filter or sort (if applicable) properties change. This may affect the order or display of information.