1

I am trying to get the posts on user's stream of type: " likes a link". I have the "read_stream" permissions and I can't see those kind of status updates.

I know about the "url_like" table (which gives the URL which the user liked), using this table I get the relevant posts I want. My problem is that the "url_like" table has only 2 fields (user_id, url) and I can't figure out how to get the DATA about this url (the post_id which got the LIKE)

The post_id will help me get the DATA about that post (same data which is displayed in the real facebook stream - showing the original post which the user liked)

Thanks.

4

1 回答 1

0

据我了解,您想通过 fql 获取所有必需的数据。但我认为你应该像下面那样使用 Grap Api;

喜欢信息

有关 like 的详细信息,您应该使用以下链接中的 EDGE 模块;

详细点赞信息

您应该将该前缀注入您的代码中,例如(例如 PHP)

// 获取用户 ID
$user = $facebook->getUser();
    if ($user) {
       try {
          // 继续知道您有一个已登录的用户,该用户已通过身份验证。
          $user_profile = $facebook->api('/me/likes');
       } 捕捉 (FacebookApiException $e) {
           error_log($e);
           $用户=空;
       }
}

看看结果如何。

<?php  #print_r($user_profile); ?>
于 2012-10-17T13:40:26.633 回答