Reputation: 12398
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?
Upvotes: 4
Views: 8585
Reputation: 400146
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.
Upvotes: 5
Reputation: 243
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];
Upvotes: 1