当我以编程方式在Facebook墙上分享文章共享文章时,标题上写着“对象”。如何删除我的共享代码附加的标题,并在那里附加图像。
以下是我的代码:
FB.ui({
method: 'share_open_graph',
action_type: 'og.shares',
action_properties: JSON.stringify({
object: {
'og:url': article_share_to, // your url to share
'og:title': 'Listen: ' + this.articleTitleFromPage[0]['title'],
'og:description': this.articleTitleFromPage[0]['title'],
'og:image': this.articleTitleFromPage[0]['image']
}
})
}
答案 0 :(得分:-2)
使用此代码
FB.ui({
method: 'feed',
link: $attr.fbUrl,
picture: $attr.fbImage,
caption: $attr.fbPost,
title: $attr.fbPost,
description: $attr.fbContent,
message: $attr.fbContent
}, function (response) {
// Action after response
});