使用最新的 FBConnect SDK 通过 iPhone 发布到用户的 Facebook 墙 [英] Post to user's Facebook wall with iPhone using latest FBConnect SDK

查看:33
本文介绍了使用最新的 FBConnect SDK 通过 iPhone 发布到用户的 Facebook 墙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难为 FBConnect iPhone SDK 找到任何好的文档.我已将 SDK 设置为从用户那里获取权限,但发一个简单的帖子却让我望而却步.我所能找到的只是 PHP Web SDK 的文档.

I'm having a tough time finding any good documentation for the FBConnect iPhone SDK. I have the SDK set up to get the permissions from the user but making a simple post is escaping me. All I can find is documentation for the PHP web SDK.

谁能给我指点一下 iPhone SDK 的一些文档,或者告诉我如何使用最新的图形 FBConnect SDK 发布到用户墙上?

Can anybody point me to some documentation for the iPhone SDK or let me know how I can post to a users wall using the latest graph FBConnect SDK?

谢谢!

推荐答案

你看过facebook-ios-sdksample目录下的DemoApp吗?有一个 publishStream 方法可能会有所帮助.

Have you looked at DemoApp under the sample directory in facebook-ios-sdk? There's a publishStream method that might help.

或者,你可以使用

- (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]的墙上发表评论.

这篇关于使用最新的 FBConnect SDK 通过 iPhone 发布到用户的 Facebook 墙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆