2013-06-05 124 views
-5

任何人都可以告訴我如何使用Facebook SDK 3.2或3.5發佈在Facebook上的朋友牆?發佈在facebook上的朋友牆

在此先感謝。

+1

你有什麼試過?這個問題幾乎沒有研究。幾乎沒有研究的問題不是很好的問題。請向我們提供您所看到的內容或您嘗試過的一些代碼。幫助我們幫助你。 -1 – Popeye

+1

你看過:http://stackoverflow.com/questions/7685970/how-to-post-message-on-facebook-friends-wall-in-iphone,http://stackoverflow.com/questions/ 10209217/facebook-api-post-message-on-friends-wall,http://stackoverflow.com/questions/10172662/post-message-on-friends-facebook-wall-post,http://stackoverflow.com/問題/ 10773030/facebook-api-post-on-friend-wall –

+0

是的,那是[純粹的偉大]的問題(http://twilight.ponychan.net/chan/files/src/136795371879.gif) – Groot

回答

4
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: 
            @"Friend FB id", @"to", 
            @"Say Hello", @"message", 
            @"Your Descriptive message", @"description", 
            @"Your link", @"link", 
            @"Your photo link", @"picture", 
            @"Facebook app id",@"app_id" 
            @"feed",@"method" 
            nil]; 

準備字典與這些多參數,然後調用方法

[FBWebDialogs presentFeedDialogModallyWithSession:session//[FBSession activeSession] 
              parameters:params 
               handler: 
     ^(FBWebDialogResult result, NSURL *resultURL, NSError *error){ 
}]; 

確保調用此之前,你的Facebook會話應該是有效的。

+0

什麼是這個facebook.com/me使用的網址是否正確? – user40910

+0

如何在「to」=>值中傳遞多個好友ID –

相關問題