このコードを使用して、Pinterest の送信メッセージをユーザーに複製しようとしています。
FB.ui({
method: 'send',
name: 'The Image',
display: 'popup',
description: 'Description here',
link: 'http://www.mywebsite.com/',
});
ポップアップ ボックスが表示されますが、説明、名前、ユーザー サムネイルを表示する画像を制御できません。
ポップアップ ボックスには、私の Web サイトの説明、名前、およびページからのランダムな画像が表示されます。
ここに画像がありますhttp://postimg.org/image/8o01c3vfr/
ユーザーのサムネイルとカスタマイズされた説明と名前を表示するポップアップを取得するにはどうすればよいですか?
更新:私はこれを試しましたが、まだ希望はありません!
<html>
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
<meta property="fb:app_id" content="app id" />
<meta property="og:title" content="Your title">
<meta property="og:description" content="Your Desc.">
<meta property="og:image" content="http://2.bp.blogspot.com/-Z-yBlXMMYWo/UBUYe-Lc46I/AAAAAAAAAxc/VO9XB7Ls-sY/s640/Under+water.JPG">
<meta property="og:image:secure_url" content="http://2.bp.blogspot.com/-Z-yBlXMMYWo/UBUYe-Lc46I/AAAAAAAAAxc/VO9XB7Ls-sY/s640/Under+water.JPG">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="150">
<meta property="og:image:height" content="150">
</head>
<body>
<div id='fb-root'></div>
<script>
// Load the SDK asynchronously
(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 = "https://connect.facebook.net/en_US/all.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
window.fbAsyncInit = function() {
FB.init({appId: "app id", status: true, cookie: true, xfbml: true, frictionlessRequests : true});
};
function send_message() {
FB.ui({
method: 'send',
name: 'The Image',
display: 'popup',
description: 'Description here',
link: 'http://www.website.com/',
picture: 'http://www.website.com/image.png'
});
}
</script>
<a href='#' onclick='send_message();'>send</a>
</body>
</html>