[英]Tagging a friend to the wall post using graph API in iOS
我正在使用此代碼發布在我的牆上,同時我想標記我的特定朋友,但不知道我如何使用Fbgrapgh API,請幫助我。
[變量setObject:messageTextView.text forKey:@“ message”]; [graphref doGraphPost:[NSString stringWithFormat:@“ me / feed”,self.friendID] withPostVars:variables]; 謝謝
要標記某人,您必須使用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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.