我尝试使用Android设备分享网页,当我点击分享时,会打开Facebook应用分享对话框半秒钟,然后立即消失。这有什么问题?元标记按照共享按钮文档页面中的定义进行设置。
<script>
window.fbAsyncInit = function () {
FB.init({
appId: 'xxx',
xfbml: true,
version: 'v2.5'
});
};
(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/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
元:
<meta property="og:url" content="http://ex.com/nl_BE/partners" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Ex, bla bla bla" />
<meta property="og:description" content="bla bla bla" />
<meta property="og:image" content="http://ex.com/ex/ex/ex/images/how-it-works/step2.jpg" />