gpt4 book ai didi

javascript - Facebook 分享的帖子显示单词 "object"如何删除该单词

转载 作者:行者123 更新时间:2023-11-30 06:55:12 24 4
gpt4 key购买 nike

当我以编程方式在 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']
}
})

}

最佳答案

使用此代码

   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
});

关于javascript - Facebook 分享的帖子显示单词 "object"如何删除该单词,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46190508/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com