Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的 facebook 状态上分享我的网站。但是当我写 www.site.com 时,它会向我显示当我添加到我的网站到主机时我写的标题。但是当我写 www.site.com/index.html 时,一切都很好,它显示了我的网站标题。我该如何解决?谢谢..
Facebook 从您放置在您的 og 元标记中获取相关数据以显示
例如,如果你想设置一个你想让 Facebook 显示的标题,你可以添加:
<meta property="og:title" content="My Website Title!" />
也不要忘记添加这个:
<meta property="fb:app_id" content="1234567890" />
对于内容,您可以放置您的应用程序的 facebook_id 或 facebook_id。它将授予您访问洞察力和更多信息的权限。
干杯