![](/img/trans.png)
[英]FBWebDialogs presentFeedDialogModallyWithSession is not displayed without the Facebook App
[英]How to pass multiple facebook Ids in presentFeedDialogModallyWithSession using FBWebDialogs?
如何使用FBWebDialogs
在presentFeedDialogModallyWithSession
傳遞多個Facebook ID?
NSMutableDictionary *params1 = [NSMutableDictionary dictionaryWithObjectsAndKeys:
FACEBOOK_APP_ID, @"app_id",
@"http://www.google.com", @"link",
@"TestApp", @"name",
@"I'm playing Guess This for iOS. Join my leaderboard!", @"message",
@"Guess This is a social puzzle game, just match the pictures to a
word or
phrase.", @"caption",
facebookID,@"to",nil];
[FBWebDialogs presentFeedDialogModallyWithSession:session//[FBSession activeSession]
parameters:params1
handler:
^(FBWebDialogResult result, NSURL *resultURL, NSError *error){
}];
然后如何在facebookId字符串中傳遞多個facebook ID?
使用Feed Dialog
或Send Dialog
您不能添加超過1個id
您可以通過將它們作為單個字符串(用逗號分隔)來傳遞來實現。
如果您有一組ID字符串,則可以這樣操作:
[idArray componentsJoinedByString:@","]
編輯
根據此處的文檔,看來供稿對話框中只能有一個用戶to
。 我上面說的確實適用於某些對話框類型。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.