如何在我的Facebook个人资料上查找用户喜欢的帖子数(非页面) [英] How to find how many POSTS (not page) has a user liked on my facebook profile
问题描述
有没有办法找出(或生成计数)用户在我的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:
- 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屋!