Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone: Facebook FBDialog with pre-filled Message

Today I noticed that the code I have been using to display a FBDialog using the Facebook SDK, which shows a Dialog with a pre-filled Text isn't working anymore. It is just showing the dialog with an empty textfield. The text I want to show is missing.

Has anyone else encountered a similar problem, or is there a better way to pre-fill the textfield with a string?

This is the code I use to call the FBDialog:

NSString * message = @"Pre-filled Text";
NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys: message,  @"message", nil];
[facebook dialog:@"feed" andParams:params andDelegate:self];
like image 910
st-h Avatar asked Aug 04 '11 20:08

st-h


1 Answers

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

message: This field will be ignored on July 12, 2011 The message to prefill the text field that the user will type in. To be compliant with Facebook Platform Policies, your application may only set this field if the user manually generated the content earlier in the workflow. Most applications should not set this.

like image 172
ceejayoz Avatar answered Sep 22 '22 02:09

ceejayoz