A utility class for sharing through the graph API. Using this class requires an access token in [FBSDKAccessToken currentAccessToken] that has been granted the "publish_actions" permission.
Conforms to: | FBSDKSharing |
Inherits from: | NSObject |
Declared in: | FBSDKShareAPI.h |
createObjectsWithClientToken
If YES, the objects created through the receiver will be created for app scope with the client token. @default NO
@property (nonatomic,
assign) BOOL createObjectsWithClientToken;
FBSDKShareAPI.h
createOpenGraphObject:
Creates an Open Graph object without an action.
Parameter | Description |
---|---|
openGraphObject | The open graph object to create. |
- (BOOL)
createOpenGraphObject:(FBSDKShareOpenGraphObject *)openGraphObject;
Use this method to create an object alone, when an action is not going to be posted with the object. If the object will be used within an action, just put the object in the action and share that as the shareContent and the object will be created in the process. The delegate will be messaged with the results.
FBSDKShareAPI.h