In Facebook SDK v4 for iOS, I use FBSDKShareDialog to share contents to my Facebook page (which I'm one of the Page Admins).
- (IBAction)shareLink:(id)sender {
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentURL = [NSURL URLWithString:@"http://www.example.com"];
[FBSDKShareDialog showFromViewController:self
withContent:content
delegate:nil];
}
It will launch Facebook App and a sharing dialog, which I'm allowed to change where I post the share contents.
Can I change the default sharing target to specific page? The default is "Your Timeline".
Aucun commentaire:
Enregistrer un commentaire