我在努力解决facebook的图像大小问题,
当我在FB上分享图片的时候,它只需要很小的尺寸(缩略图)。甚至我共享一个高分辨率的图像(1600x1200或900x400)大小大小。
与以下代码共享。
<a class="btn" target="_blank" href="http://www.facebook.com/sharer.php?s=100&p[title]=sample title&p[summary]=custom summary&p[url]=domainname&p[images][0]=http://hidefwalls.com/wp-content/g/high-resolution/high-resolution-14-xooacj0rr2-1600x1200.jpg">share on facebook</a>所以我的问题是,有没有办法共享一个大的图像大小(至少400x209)。我跟踪了许多链接,但没有帮助我。
另外,请让我知道任何选项,以限制一个形象显示在股票期权。?
提前感谢
发布于 2013-11-13 04:50:56
我通过下面的代码分享/发布。希望能帮上忙。fbImg && fbTxt是通过jquery从我的站点提取的动态图像。
function publishWallPost() {
var fbImg = $('.head .headerLeft p img')[0].src;
var fbTxt = $('.head .headRight span.artistName').text();
FB.ui({
method: 'feed',
name: 'Pandora - Which Star Are You',
caption: 'https://www.facebook.com/pages/Pandora/119285608270259?id=119285608270259&sk=app_535647489852225',
description: 'According to Pandora\'s Which Star Are You competition, I\'m ' + fbTxt + '. Click on the artist\'s picture to find out which star you are!',
link: 'https://www.facebook.com/pages/Pandora/119285608270259?id=119285608270259&sk=app_535647489852225',
picture: fbImg
},
function (response) {
console.log('publishStory response: ', response);
});
return false;
}
window.fbAsyncInit = function () {
FB.init({
appId: '535647489852225',
status: true,
cookie: true,
xfbml: true
});
};
(function () {
var e = document.createElement('script');
e.async = true;
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());https://stackoverflow.com/questions/19944467
复制相似问题