IPhone: Facebook FBDialog with pre-populated message

Today I noticed that the code I used to display the FBDialog using the Facebook SDK, which shows a dialog with pre-filled text, no longer works. It just displays a dialog with an empty text box. The text I want to show is missing.

Has anyone else encountered a similar problem or is there a better way to pre-populate a text field with a string?

This is the code I use to call FBDialog:

NSString * message = @"Pre-filled Text"; NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys: message, @"message", nil]; [facebook dialog:@"feed" andParams:params andDelegate:self]; 
+6
source share
1 answer

This is the intended behavior. https://developers.facebook.com/docs/reference/dialogs/feed/

message : This field will be ignored on July 12, 2011 . A message to pre-populate the text field that the user will enter. To meet the requirements of the platform platform Facebook, your application can set this field if the user manually generated content earlier in the workflow. Most applications should not install this.

+11
source

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


All Articles