gpt4 book ai didi

javascript - “赞”按钮,在我的个人资料中发布时,描述将替换为“链接”“链接”“链接”

转载 作者:行者123 更新时间:2023-11-28 10:58:42 35 4
gpt4 key购买 nike

我有一个网站,并且我使用 javascript sdk 添加了“点赞”按钮。

这是代码

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>

这是 html 代码

<div class="fb-like" data-href="WEBSITE URL" data-send="true"  data-width="450"data-show-faces="false" data-action="like"> </div>

我还在头部添加了og:meta

<meta property="og:description" content=" the description of my website" />
<meta property="og:title" content="title" />
<meta property="og:url" content="url"/>
<meta property="og:image" content="pic" />
<meta property="og:type" content="website"/>
<meta property="fb:admins" content="facebook id"/>

问题是这样的:

当我点击网站上的“赞”按钮时,我可以看到所有信息(名称、图片、描述),但是当我转到 Facebook 个人资料时,描述会替换为:

Link
Link
Link
Link

我不明白问题出在哪里。有人可以帮助我吗?

最佳答案

我也有同样的问题!

我有评论插件和点赞框。

如果用户没有在 Facebook 上发表任何评论,则在“赞”框中将其发布到用户事件提要上。但是如果用户写了一些内容,它就会在时间轴中放入 4 行“like”:

链接链接链接链接

但是当鼠标悬停在标题上时,它会显示一个带有正确预览的弹出窗口。

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it-it" lang="it-it">
<meta property="og:title" content="Il menù dei cuscini"/>
<meta property="og:url" content="http://www.cibbuzz.com/comunicati-stampa/fashion-e-intrattenimento/il-menu-dei-cuscini"/>
<meta property="og:description" content="Dopo i vini e gli oli, negli alberghi arriva la carta dei cuscini Si diffonde negli alberghi di qualità il “menù dei cuscini”, una lista dove..."/>
<meta property="og:type" content="article" />
<meta property="og:image" content="http://www.cibbuzz.com/images/loghi/logo-cibbuzz-portfolio.jpg" />
<meta property="og:site_name" content="Cibbuzz" />
<meta property="fb:app_id" content="130008293680636" />
<meta property="fb:admins" content="1051936195" />

<div id="fb-root"></div>

<div class="fb-like" data-send="false" data-width="100" data-layout="button_count" data-show-faces="true" data-href="http://www.cibbuzz.com/comunicati-stampa/fashion-e-intrattenimento/il-menu-dei-cuscini" data-force_wall="true"></div>


<script type="text/javascript">
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1&appId=130008293680636";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>

这来自 Lint 工具:

Scrape Information

Response Code: 200
Fetched URL: http://www.cibbuzz.com/comunicati-stampa/fashion-e-intrattenimento/il-menu-dei-cuscini
URL canonico: http://www.cibbuzz.com/comunicati-stampa/fashion-e-intrattenimento/il-menu-dei-cuscini
Proprietà Oggetto

fb:admins: Array of length 1
⍾ 1051936195
fb:app_id: 130008293680636
og:url: http://www.cibbuzz.com/comunicati-stampa/fashion-e-intrattenimento/il-menu-dei-cuscini
og:type: article
og:title: Il menù dei cuscini
og:image:
og:description: Dopo i vini e gli oli, negli alberghi arriva la carta dei cuscini Si diffonde negli alberghi di qualità il “menù dei cuscini”, una lista dove...
og:site_name: Cibbuzz
og:updated_time: 1359667404

关于javascript - “赞”按钮,在我的个人资料中发布时,描述将替换为“链接”“链接”“链接”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14633911/

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