简体   繁体   中英

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 eg

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

Can anybody please explain what is the official plan 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 .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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