简体   繁体   English

Facebook for iPhone,背景墙贴

[英]Facebook for iPhone, background wall post

I am implementing the Facebook iOS SDK into my app... and find no problems with that. 我正在将Facebook iOS SDK实现到我的应用程序中......并且没有发现任何问题。 BUT, what I can't find to figure out is how to send basic wall post to my facebook app wall. 但是,我找不到的是如何发送基本的墙贴到我的Facebook应用程序墙。

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). 我想要做的是每当用户搜索某些内容时,该应用程序会向我的应用程序墙(而不是用户墙)发送一个带有以下文本"@someUser just searched for someSearchQuery""@someUser just searched for someSearchQuery" 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. Offcource这是我希望用户能够在设置页面中打开/关闭的东西,因此用户知道它。

How can I do this? 我怎样才能做到这一点?

Best regards, Paul Peelen 最诚挚的问候,Paul Peelen

Use the new Graph API as described here: http://developers.facebook.com/docs/api#publishing 使用此处描述的新Graph API: http//developers.facebook.com/docs/api#publishing

Quoting: "For example, you can post a new wall post on Arjun's wall by issuing a POST request to https://graph.facebook.com/arjun/feed " 引用:“例如,您可以通过向https://graph.facebook.com/arjun/feed发出POST请求,在Arjun的墙上发布新的墙帖”

To use the Graph API from Facebook iOS SDK do something like: 要使用Facebook iOS SDK中的Graph API,请执行以下操作:

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

where params is a dictionary with following optional keys: message, picture, link, name, caption, description, source params是一个带有以下可选键的字典:消息,图片,链接,名称,标题,描述,来源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM