Facebook图形API无法获取图像

时间:2014-10-14 08:41:19

标签: ios objective-c facebook facebook-graph-api

我正在使用Facebook图形API。 通过使用这个时间线帖子/me/home

我正在尝试使用object_id显示时间轴照片。

对于这样使用

http://graph.facebook.com/791355974262876/picture?type=normal

但是,Friends updated profile picture or they added photos会重定向到此图片链接。

https://fbstatic-a.akamaihd.net/rsrc.php/v2/yA/r/gPCjrIGykBe.gif

为什么我没有得到图像。如何解决这个问题。

编辑:

这是我发布回复

{
    actions =     (
                {
            link = "https://www.facebook.com/100001654426439/posts/791354350929705";
            name = Comment;
        },
                {
            link = "https://www.facebook.com/100001654426439/posts/791354350929705";
            name = Like;
        }
    );
    application =     {
        id = 2305272732;
        name = Photos;
    };
    "created_time" = "2014-10-17T07:55:49+0000";
    from =     {
        id = 100001654426439;
        name = "Savad Kunnath";
    };
    icon = "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yz/r/StEh3RhPvjk.gif";
    id = "100001654426439_791354350929705";
    likes =     {
        count = 3;
        data =         (
                        {
                id = 100000924318296;
                name = "Anoop Haridas";
            },
                        {
                id = 100003006130969;
                name = "Ali Bhai MK";
            },
                        {
                id = 100001875169841;
                name = "Shab\U0258\U0258r Muhamd";
            }
        );
    };
    link = "https://www.facebook.com/photo.php?fbid=791355974262876&set=a.104268106305003.7193.100001654426439&type=1&relevant_count=1";
    "object_id" = 791355974262876;
    picture = "https://scontent-b.xx.fbcdn.net/hphotos-xfp1/v/l/t1.0-9/p130x130/10703518_791355974262876_932547360902961732_n.jpg?oh=6b4d7cee37a9c4277f8fc98e7ce99150&oe=54AE46EE";
    privacy =     {
        value = "";
    };
    story = "Savad Kunnath changed his profile picture.";
    "story_tags" =     {
        0 =         (
                        {
                id = 100001654426439;
                length = 13;
                name = "Savad Kunnath";
                offset = 0;
                type = user;
            }
        );
    };
    type = photo;
    "updated_time" = "2014-10-17T07:55:49+0000";
}

1 个答案:

答案 0 :(得分:0)

您是否检查过该ID是否为有效的用户ID?