Other¶
Share Link to Facebook¶
Objective-c syntax
//#import <GTVLib/GTVLib.h> // through cocoaPods
#import <GTVFramework/GTVManager.h> // without cocoaPods
[[GTVManager sharedManager] shareLinkContent:@"https://gtv.com.vn/" fromViewController:self callback:^(NSDictionary<NSString *,id> * _Nullable results, NSError * _Nullable error, BOOL cancel) {
NSLog(@"\nResults: %@ \n Error: %@ \n Cancel: %d", results, error, cancel);
}];
Swift syntax
GTVManager.shared().shareLinkContent("https://gtv.com.vn/", from: self) { (result, erroe, cancel) in
//
}