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 |
message
The message the person has provided through the custom dialog that will accompany the share content.
@property (nonatomic,
copy) NSString *message;
FBSDKShareAPI.h
createOpenGraphObject:
Creates an User Owned 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.
Also see https://developers.facebook.com/docs/sharing/opengraph/object-api#objectapi-creatinguser
FBSDKShareAPI.h