1

这是非常简单的代码:

            var obj = {
                method: "feed",
                link: share_url,
                picture: share_url,
                name: "test name",
                caption: "test caption",
                description: "Using Dialogs to interact with users."
            };
            function callback(response) {
                console.log(response);
            }
            FB.ui(obj, callback);

share_url 是这样的:

http://www.majorforms.com/thumbnail.php?width=1200&height=1200&image=1033/4f/4f313dee7641ba3add3ac080f451277a9af9f0cc.jpg

问题是帖子写在我的墙上,但图像不在那里!即使我为“链接”和“图片”提供了相同的 URL。这是为什么?

4

1 回答 1

2

这是答案。如果我省略了图片参数,那么一切正常!例如

        var obj = {
            method: "feed",
            link: share_url,
            name: "test name",
            caption: "test caption",
            description: "Using Dialogs to interact with users."
        };
        function callback(response) {
            console.log(response);
        }
        FB.ui(obj, callback);

我不知道为什么,但事实就是这样。

于 2013-05-13T13:20:56.407 回答