如何在我的Facebook个人资料上查找用户喜欢的帖子数(非页面) [英] How to find how many POSTS (not page) has a user liked on my facebook profile

查看:271
本文介绍了如何在我的Facebook个人资料上查找用户喜欢的帖子数(非页面)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法找出(或生成计数)用户在我的Facebook个人资料上点赞"了多少帖子?

Is there a way to find out (or generate a count) of how many posts has a user 'liked' on my facebook profile?

例如,如果我提供一个用户ID,我可以查询该用户喜欢多少个帖子(在特定的Facebook个人资料页面上)?

For example, if I provide a userID, can I query that how many of the posts (on a particular facebook profile page) has this user liked?

推荐答案

您应该可以使用 FQL .

这里需要关注的两个FQL表是:

The two FQL tables that are of interest here are:

  • 喜欢-返回喜欢给定对象的用户的ID (视频,注释,链接,照片或相册)"
  • 信息流-用于返回信息流列表的信息"
  • like - "returns the IDs of users who like a given object (video, note, link, photo, or album)"
  • stream - "used to return a list of a stream posts"

然后您可以像这样使用它们:

You can then use them both like this:

SELECT 
    object_id 
FROM 
    like 
WHERE 
    user_id = USER_ID 
    AND 
    post_id IN (SELECT 
                    post_id 
                FROM 
                    stream 
                WHERE 
                    source_id = PAGE_ID)

尝试此操作时,您需要对登录用户具有两个权限:read_stream和read_insights.

You'll need to have two permissions for the logged in user when you try this: read_stream and read_insights.

您可以在

You can try it in the Graph Api Explorer (just replace the USER_ID and PAGE_ID with real ids)

这篇关于如何在我的Facebook个人资料上查找用户喜欢的帖子数(非页面)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆