FBSDKShareOpenGraphValueContaining

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
執行個體方法
arrayForKey:

Gets an NSArray out of the receiver.

參數說明
key

The key for the value

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

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

參數說明
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.

參數說明
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.

參數說明
key

The key for the value

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

Enables subscript access to the values in the receiver.

參數說明
key

The key for the value

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

Parses properties out of a dictionary into the receiver.

參數說明
properties

The properties to parse.

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

Gets an FBSDKSharePhoto out of the receiver.

參數說明
key

The key for the value

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

Removes a value from the receiver for the specified key.

參數說明
key

The key for the value

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

Sets an NSArray on the receiver.

參數說明
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.

參數說明
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.

參數說明
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.

參數說明
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.

參數說明
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.

參數說明
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.

參數說明
key

The key for the value

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

Gets an NSURL out of the receiver.

參數說明
key

The key for the value

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