iPhone for iPhone,背景墙贴 [英] Facebook for iPhone, background wall post

查看:131
本文介绍了iPhone for iPhone,背景墙贴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在实施Facebook iOS SDK到我的应用程序...并没有发现任何问题。但是,我找不到找到的是如何发送基本的墙上贴子到我的Facebook应用程序墙。

I am implementing the Facebook iOS SDK into my app... and find no problems with that. BUT, what I can't find to figure out is how to send basic wall post to my facebook app wall.

我想做的是每当用户搜索有些事情,应用程序发送一个墙纸,其中包含以下文本@ someUser刚刚搜索someSearchQuery到我的应用程序墙(而不是用户墙)。
Offcource这是我希望用户能够在设置页面中打开/关闭的东西,所以用户知道它。

What I want to do is whenever a user searches for something, the app sends a wall-post with the following text "@someUser just searched for someSearchQuery" to my apps wall (not the users wall). Offcource this is something I want the user to be able to switch on / off in the settings page, so the user is aware of it.

如何我这样做?

最好的问候,
Paul Peelen

Best regards, Paul Peelen

推荐答案

使用新的Graph API,如下所述:
http://developers.facebook .com / docs / api#publishing

Use the new Graph API as described here: http://developers.facebook.com/docs/api#publishing

报价:
例如,您可以在Arjun的墙上发布一个新的墙贴,发出POST请求 https://graph.facebook.com/arjun/feed

要使用Facebook iOS SDK中的Graph API,请执行以下操作:

To use the Graph API from Facebook iOS SDK do something like:

[facebook requestWithGraphPath:@"[your app's id]/feed" andParams:params andMethod:@"POST" andDelegate:self];

其中params是具有以下可选键的字典:
消息,图片,链接,名称,标题,说明,来源

where params is a dictionary with following optional keys: message, picture, link, name, caption, description, source

这篇关于iPhone for iPhone,背景墙贴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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