尝试在FBML中使用Meta类的自定义参数构建一个共享按钮,但不起作用。
我已经将以下代码放入静态FBML选项卡中。
<fb:share-button>
<meta name="title" content="My fan page" />
<meta name="description" content="What a great fan page”/>
</fb:share-button>但是,在单击共享按钮后,它不会在弹出窗口中显示标题和描述。请帮帮忙。
发布于 2011-12-12 19:27:20
您必须在页面上放置一些额外的参数,以便facebook可以知道要显示哪些信息。看看this page吧。您需要在页面上放置一些og:tags。例如:
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
该og:tag定义了要在共享弹出窗口中显示的图像。
话虽如此,正如我在your previous question about FBML中回答的那样,facebook和不再支持FBML的功能,它将停止使用。
我建议您使用不同的方法来实现“共享”按钮。例如,您可以使用the share button social plugin
https://stackoverflow.com/questions/8473471
复制相似问题