无法在脸谱图评论中获取图像

时间:2015-04-07 13:30:48

标签: php facebook facebook-graph-api comments

我通过图形API使用PHP 2.2版访问Facebook。 当用户在评论中写回复并附上图像时,我不知道如何抓住图像!?我无法在api中看到有关图像的任何信息。

首先我读了这篇文章:

$request = new FacebookRequest( $session, 'GET', '/' . $pageid . '/feed?since=' . $dat );

然后我访问供稿的评论:

 $request = new FacebookRequest( $session, 'GET', '/' . $c_id . '/comments' );

($ c_id = 809559325802038_809564295801541)

api回归:

    [data] => Array
    (
        [0] => stdClass Object
            (
                [id] => 809559325802038_809565162468121
                [from] => stdClass Object
                    (
                        [id] => 100002418214924
                        [name] => Conny Olsson
                    )

                [message] => nice
                [can_remove] => 1
                [created_time] => 2015-04-07T12:25:36+0000
                [like_count] => 0
                [user_likes] => 
            )

        [1] => stdClass Object
            (
                [id] => 809559325802038_809573482467289
                [from] => stdClass Object
                    (
                        [id] => 100002418214924
                        [name] => Conny Olsson
                    )

                [message] => ok
                [can_remove] => 1
                [created_time] => 2015-04-07T12:51:52+0000
                [like_count] => 0
                [user_likes] => 
            )

    )

facebook上的评论附有图片: https://www.facebook.com/vetgirignu/posts/809559325802038?comment_id=809564295801541

根据文档,附件标签应该包括在内?! https://developers.facebook.com/docs/graph-api/reference/v2.2/comment

如何通过gragh api获取评论的图像?

0 个答案:

没有答案