简体   繁体   中英

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

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.

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