开发者

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

I've just read this 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 e.g.

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

Can anybody please explain what is the official plan B?开发者_StackOverflow社区


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.

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.


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]; 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜