2011-02-23 95 views

回答

3

您需要發佈流或您要發佈,而無需用戶交互的任何消息「publish_stream」。

NSString *message = @"test message here"; 
NSMutableDictionary *params = [NSMutableDictionary dictionary]; 
[params setObject:message forKey:@"message"]; 

[_facebook requestWithMethodName:@"facebook.Stream.publish" andParams:params 
        andHttpMethod:@"POST" andDelegate:self]; 

然後你就可以處理Facebook的即

- (void)request:(FBRequest *)request didLoad:(id)result 

希望幫助的「代表」的方法響應,請如果它標記爲答案。

感謝

+0

http://stackoverflow.com/questions/4422306/post-link-using-facebook-sdk-on-iphone這個環節也有幫助 – xydev 2011-02-23 11:56:12

相關問題