简体   繁体   English

Facebook iOs SDK - 在用户的墙上发布预先填写的消息

[英]Facebook iOs SDK - post a pre-filled message on users' wall

I've just read this https://developers.facebook.com/docs/reference/dialogs/feed/ 我刚读过这篇https://developers.facebook.com/docs/reference/dialogs/feed/

It says since the 12th of July 2011 it is not possible anymore to use the "message" property to prefill a message to post on users wall eg 它说自2011年7月12日以来,不再可能使用“消息”属性来预填充消息以在用户墙上发布,例如

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"hi!", @"message", nil]; 
[facebook dialog:@"feed" andParams:params andDelegate:self]

Can anybody please explain what is the official plan B? 任何人都可以解释一下官方计划B是什么?

As the documentation says: 正如文件所说:

If you would like your application to publish directly to a profile's feed without user interaction, use the corresponding Graph API call . 如果您希望应用程序直接发布到配置文件的供稿而无需用户交互,请使用相应的Graph API调用

However, note that you need to ask for the publish_stream extended permission in order to be able to post to a user's wall. 但是,请注意,您需要请求publish_stream 扩展权限才能发布到用户的墙上。

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"message", @"hi!", nil]; 

[facebook dialog:@"feed" andParams:params andDelegate:self];

exchange your object with key....this is right: 用钥匙交换你的对象......这是对的:

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"hi", @"message", nil]; 

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

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