Is there a way to find out (or generate a count) of how many posts has a user 'liked' on my facebook profile?
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?
Is there a way to find out (or generate a count) of how many posts has a user 'liked' on my facebook profile?
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?
You should be able to use FQL for that.
The two FQL tables that are of interest here are:
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)
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)