我使用 Facebook 应用程序 (shortstack) 制作我的页面。 当我使用短 URL 共享时,我想个性化发布。 我测试过创建开放图元标记,但它不起作用。
最佳答案
您需要在您的页面中放置 opengraph 元标记
<meta property="og:title" content="The Rock"/>
<meta property="og:type" content="movie"/>
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
<meta property="og:site_name" content="IMDb"/>
<meta property="fb:admins" content="USER_ID"/>
<meta property="og:description"
content="A group of U.S. Marines, under command of
a renegade general, take over Alcatraz and
threaten San Francisco Bay with biological
weapons."/>
示例在这里找到 http://developers.facebook.com/docs/opengraphprotocol/
你还需要把top标签改成
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml">
然后它应该可以正常工作:)
要调试您的页面并查看您是否正确实现了 opengraph 标记,请使用此处的调试器工具:http://developers.facebook.com/tools/debug/
希望对你有帮助
关于facebook - 打开图元标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10172183/