FBSDKShareOpenGraphValueContaining
A more recent version of this class is available. Check out the latest version.

Protocol defining operations on open graph actions and objects.

Discussion:

The property keys MUST have namespaces specified on them, such as og:image.

Extends Protocol:NSObject, NSSecureCoding
Declared in:FBSDKShareOpenGraphValueContaining.h
Instance Methods
arrayForKey:

Gets an NSArray out of the receiver.

ParameterDescription
key

The key for the value

- (NSArray *) arrayForKey:(NSString *)key;
enumerateKeysAndObjectsUsingBlock:

Applies a given block object to the entries of the receiver.

ParameterDescription
block

A block object to operate on entries in the receiver

- (void)
enumerateKeysAndObjectsUsingBlock
void
^
NSString
key
idobject
BOOL
stop
block;
keyEnumerator

Returns an enumerator object that lets you access each key in the receiver.

- (NSEnumerator *) keyEnumerator;
numberForKey:

Gets an NSNumber out of the receiver.

ParameterDescription
key

The key for the value

- (NSNumber *) numberForKey:(NSString *)key;
objectEnumerator

Returns an enumerator object that lets you access each value in the receiver.

- (NSEnumerator *) objectEnumerator;
objectForKey:

Gets an FBSDKShareOpenGraphObject out of the receiver.

ParameterDescription
key

The key for the value

- (FBSDKShareOpenGraphObject *) objectForKey:(NSString *)key;
objectForKeyedSubscript:

Enables subscript access to the values in the receiver.

ParameterDescription
key

The key for the value

- (id) objectForKeyedSubscript:(NSString *)key;
parseProperties:

Parses properties out of a dictionary into the receiver.

ParameterDescription
properties

The properties to parse.

- (void) parseProperties:(NSDictionary *)properties;
photoForKey:

Gets an FBSDKSharePhoto out of the receiver.

ParameterDescription
key

The key for the value

- (FBSDKSharePhoto *) photoForKey:(NSString *)key;
removeObjectForKey:

Removes a value from the receiver for the specified key.

ParameterDescription
key

The key for the value

- (void) removeObjectForKey:(NSString *)key;
setArray:forKey:

Sets an NSArray on the receiver.

ParameterDescription
array

The NSArray value

key

The key for the value

- (void)
setArray: (NSArray *)array
forKey: (NSString *)key;
Discussion:

This method will throw if the array contains any values that is not an NSNumber, NSString, NSURL, FBSDKSharePhoto or FBSDKShareOpenGraphObject.

setNumber:forKey:

Sets an NSNumber on the receiver.

ParameterDescription
number

The NSNumber value

key

The key for the value

- (void)
setNumber: (NSNumber *)number
forKey: (NSString *)key;
setObject:forKey:

Sets an FBSDKShareOpenGraphObject on the receiver.

ParameterDescription
object

The FBSDKShareOpenGraphObject value

key

The key for the value

- (void)
setObject: (FBSDKShareOpenGraphObject *)object
forKey: (NSString *)key;
setPhoto:forKey:

Sets an FBSDKSharePhoto on the receiver.

ParameterDescription
photo

The FBSDKSharePhoto value

key

The key for the value

- (void)
setPhoto: (FBSDKSharePhoto *)photo
forKey: (NSString *)key;
setString:forKey:

Sets an NSString on the receiver.

ParameterDescription
string

The NSString value

key

The key for the value

- (void)
setString: (NSString *)string
forKey: (NSString *)key;
setURL:forKey:

Sets an NSURL on the receiver.

ParameterDescription
URL

The NSURL value

key

The key for the value

- (void)
setURL: (NSURL *)URL
forKey: (NSString *)key;
stringForKey:

Gets an NSString out of the receiver.

ParameterDescription
key

The key for the value

- (NSString *) stringForKey:(NSString *)key;
URLForKey:

Gets an NSURL out of the receiver.

ParameterDescription
key

The key for the value

- (NSURL *) URLForKey:(NSString *)key;