0

我正在使用此代码在我的墙上发布,同时我想标记给我的特定朋友,但不知道我如何使用 Fbgrapgh API 请帮助我。

[变量 setObject:messageTextView.text forKey:@"message"]; [graphref doGraphPost:[NSString stringWithFormat:@"me/feed",self.friendID] withPostVars:variables]; 谢谢

4

1 回答 1

1

要标记某人,您必须使用 FbDialogs。除了 FB 对话框之外,您不能以任何方式在状态更新中标记您的朋友。

要使用 FBDialog 共享状态,请参阅此示例代码

[FBDialogs presentShareDialogWithLink:nil handler:^(FBAppCall *call, NSDictionary *results, NSError *error) {

    if(error) {

        NSLog(@"Error: %@", error.description);

  } else {

        NSLog(@"Success!");

    }

}];

它取自这里https://developers.facebook.com/ios/share-dialog/#statusupdate

于 2013-08-22T13:15:01.840 回答