将动作属性插入自定义故事附件
Inserting action properties into custom story attachment
documentation 没有描述如何使用此对话框将操作属性插入附件:
例如,如果我分享具有这些属性的故事:
FB.ui({
method: 'share_open_graph',
action_type: 'appnamespace:Adore',
action_properties: JSON.stringify(
{
person: 'http://whosebug.com/users/1920325/eye-mew',
reason: 'He has a flawless jawline'
})
},
function(response){}
});
如何在附件标题中显示 Adore
操作的 reason
属性?
How would I expose the reason
property of the Adore
action, in the attachment caption?
开始在这些字段中输入 {
大括号,然后系统会显示您可以使用的属性建议。
(你是对的,文档中似乎不再提及。)
documentation 没有描述如何使用此对话框将操作属性插入附件:
例如,如果我分享具有这些属性的故事:
FB.ui({
method: 'share_open_graph',
action_type: 'appnamespace:Adore',
action_properties: JSON.stringify(
{
person: 'http://whosebug.com/users/1920325/eye-mew',
reason: 'He has a flawless jawline'
})
},
function(response){}
});
如何在附件标题中显示 Adore
操作的 reason
属性?
How would I expose the
reason
property of theAdore
action, in the attachment caption?
开始在这些字段中输入 {
大括号,然后系统会显示您可以使用的属性建议。
(你是对的,文档中似乎不再提及。)