Facebook iOs SDK - post a pre-filled message on the user's wall

I just read this https://developers.facebook.com/docs/reference/dialogs/feed/

It says that since July 12, 2011 it is impossible to use the "message" property to pre-populate a message for publication on the user's wall, for example.

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

Can someone explain what official plan B is?

+4
source share
2 answers

As the documentation says:

If you want your application to be published directly to the profile feed without user interaction, use the appropriate Graph API call .

However, note that you need to request an extended publish_stream permission in order to be able to send messages to the user's wall.

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

exchange your object for a key .... this is correct:

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

Source: https://habr.com/ru/post/1369007/


All Articles