Facebook Sharing-News Link Sharing
Function
News link-type facebook sharing, after the sharing is successful, fb's friends click on the share, will go to the corresponding page (note: it does not need any environmental support, can be shared through the web page or Facebook App display), as shown in the figure:
- The sharing operation interface that pops up when calling the interface:

- The effect displayed on Facebook after successful sharing:

Function
objective-c
- (void)gamedreamerNewFacebookShareFrom:(UIViewController * _Nullable)viewController
Link:(NSString *)link
complete:(void (^)(BOOL shareResult))EFCallback;Parameter
| Parameter name | Nullable (Yes/No) | explain |
|---|---|---|
| viewController | Yes | Parent viewcontroller pops up in the sharing interface |
| link | No | Jump links to share content |
Correction
resultParameter:
| Field | explain |
|---|---|
| EFCallback | The result of sharing, YES: success; NO: Failure |
Example code
objective-c
[[GDFacebookShare shareInstance] gamedreamerNewFacebookShareFrom:self
Link:@"http://h.It is.jpg"
complete:^(BOOL shareResult) {
NSLog(@"%@",shareResult?@"success":@"fail");
}];