简体   繁体   English

iPhone:Facebook FBDialog预填充消息

[英]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. 今天我注意到我用来显示使用Facebook SDK的FBDialog的代码,它显示带有预填充文本的Dialog不再有效。 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: 这是我用来调用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/ 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. message此字段将在2011年7月12日被忽略用于预填充用户将键入的文本字段的消息。要符合Facebook平台策略,您的应用程序可能仅在用户手动生成内容时才设置此字段工作流程。 Most applications should not set this. 大多数应用程序不应该设置它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM