Facebook Feed对话框图像URL长度

时间:2012-06-13 13:09:12

标签: facebook facebook-graph-api facebook-social-plugins

代码:

FB.ui({
        method: 'feed',
        name: "Test Name",
        link: "http://www.facebook.com",
        picture: "https://www.rwe-smarthome.de/is-bin/intershop.static/WFS/RWEEffizienz-SmartHome-Site/RWEEffizienz-SmartHome/de_DE/Energiesparpaket%20plus/Energiesparpaket-Plus_170px_198px.png",
        caption: '',
        description: "Some description goes here",
    },function(response) {
        if (response && response.post_id) {
            //alert('Post was published.');
        } else {
            //alert('Post was not published.');
        }
    });

上面的代码显示了facebook Feed对话框,但没有图片。我认为问题在于图片论证的长度。用任何其他短图像URL替换图片URL将完成工作。我无法更改图片网址,因为它来自网络服务。图片网址的Facebook Feed对话框是否有任何长度限制?

1 个答案:

答案 0 :(得分:0)

尝试将参数设置为图像的非HTTPS版本。