Facebook Share-Local Photo Sharing
Function
The facebook sharing of local pictures will only display the pictures after the sharing is successful (note: it needs environmental support and needs to install facebook app, otherwise the sharing will fail), as shown in the figure:
Function
objective-c
- (void)gamedreamerNewFacebookShare:(UIViewController * _Nullable)viewController
LocalImage:(UIImage *)picture
completion:(EFShareCallback)EFCallback;Parameter
| Parameter name | Nullable (Yes/No) | explain |
|---|---|---|
| viewController | Yes | The Parent View controller that pops up the sharing interface. |
| picture | No | Local Picture |
Correction
resultParameter:
| Field | explain |
|---|---|
| EFCallback | The result of sharing, YES: success; NO: Failure |
Example code
objective-c
[[GDFacebookShare shareInstance] gamedreamerNewFacebookShare:superViewController LocalImage:@ "local image" completion:^(BOOL sharerresult) {
// Share result callback,YES: Success; NO: Failure
}];