FBGraphObject
Esta clase no está disponible en la última versión del SDK.
Existe una versión más reciente de esta clase. Consulta la última versión.

Static class with helpers for use with graph objects

Discussion:

The public interface of this class is useful for creating objects that have the same graph characteristics of those returned by methods of the SDK. This class also represents the internal implementation of the FBGraphObject protocol, used by the Facebook SDK. Application code should not use the FBGraphObject class to access instances and instance members, favoring the protocol.

Conforms to:FBGraphObject
Inherits from:NSMutableDictionary
Declared in:FBGraphObject.h
Métodos de clase
graphObject

Used to create a graph object for, usually for use in posting a new graph object or action

+ (NSMutableDictionary<FBGraphObject>*) graphObject;
Declarado en: FBGraphObject.h
graphObjectWrappingDictionary:

Used to wrap an existing dictionary with a FBGraphObject facade

ParámetroDescripción
jsonDictionary

The dictionary representing the underlying object to wrap

+ (NSMutableDictionary<FBGraphObject>*) graphObjectWrappingDictionary:(NSDictionary*)jsonDictionary;
Discussion:

Normally you will not need to call this method, as the Facebook SDK already "FBGraphObject-ifys" json objects fetch via FBRequest and FBRequestConnection. However, you may have other reasons to create json objects in your application, which you would like to treat as a graph object. The pattern for doing this is that you pass the root node of the json to this method, to retrieve a wrapper. From this point, if you traverse the graph, any other objects deeper in the hierarchy will be wrapped as FBGraphObject's in a lazy fashion.

This method is designed to avoid unnecessary memory allocations, and object copying. Due to this, the method does not copy the source object if it can be avoided, but rather wraps and uses it as is. The returned object derives callers shoudl use the returned object after calls to this method, rather than continue to call methods on the original object.

Declarado en: FBGraphObject.h
isGraphObjectID:sameAs:

Used to compare two FBGraphObjects to determine if represent the same object. We do not overload the concept of equality as there are various types of equality that may be important for an FBGraphObject (for instance, two different FBGraphObjects could represent the same object, but contain different subsets of fields).

ParámetroDescripción
anObject

An FBGraphObject to test

anotherObject

The FBGraphObject to compare it against

+ (BOOL)
isGraphObjectID: (id<FBGraphObject>)anObject
sameAs: (id<FBGraphObject>)anotherObject;
Declarado en: FBGraphObject.h