簡體   English   中英

使用最新的FBConnect SDK在iPhone上發布到用戶的Facebook牆

[英]Post to user's Facebook wall with iPhone using latest FBConnect SDK

我很難找到FBConnect iPhone SDK的任何好文檔。 我已經設置了SDK來獲取用戶的權限,但做一個簡單的帖子就是逃避我。 我能找到的只是PHP Web SDK的文檔。

任何人都可以向我指出iPhone SDK的一些文檔,或者讓我知道如何使用最新的圖表FBConnect SDK發布到用戶牆?

謝謝!

您是否在facebook-ios-sdksample目錄下查看了DemoApp? 有一個可能有幫助的publishStream方法。

或者,你可以使用

- (void)requestWithGraphPath:(NSString *)graphPath
                   andParams:(NSMutableDictionary *)params
               andHttpMethod:(NSString *)httpMethod
                 andDelegate:(id <FBRequestDelegate>)delegate;

像這樣:

[_facebook requestWithGraphPath:@"[user_id]/feed" 
                      andParams:[NSMutableDictionary dictionaryWithObject:@"test wall post" forKey:@"message"]
                  andHttpMethod:@"POST"
                    andDelegate:self];

發表評論到[user_id]的牆上。

你知道這個,詳細說明:

NSMutableDictionary* params1 = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                    appId, @"api_key",
                                    @"Please join me...", @"message",
                                      @"https://www.mybantu.com", @"link",
                                    @"https:/www.mybantu.com/myphoto.png", @"picture",
                                    @"my profile", @"name",
                                    @"hi to all", @"description",
                                      //    @"100001309042820", @"target_id",
                                    nil];
    [facebook requestWithGraphPath:@"[friend_ID]/feed" andParams:params1 andHttpMethod:@"POST" andDelegate:self];

我們不能在這里使用Facebook個人資料或照片,從其他網站獲取或您自己的網站個人資料。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM