2013-08-22 43 views
0

我正在使用此代碼發佈在我的牆上,同時我想標記給我的specefic朋友,但不知道我如何使用Fbgrapgh API幫我。在iOS中使用圖形API將朋友標記到牆帖中

[變量setObject:messageTextView.text forKey:@「message」]; [graphref doGraphPost:[NSString stringWithFormat:@「me/feed」,self.friendID] withPostVars:variables]; 謝謝

回答

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

+0

採取共享狀態,請讓我知道我該如何使用它FB的對話? – Mohit

相關問題