Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linkedin/Facebook Api to get users comment on users out of network update

I am using linkedin api for getting network updates. And I am being able to fetch comments that a user made on either his update or on his 1st degree network updates.

My Question is : Is there any possible way to get the comment a user do on out of network update? Thanks.

Update : Question for facebook api It also would be helpful if anyone could lead me to a way to get users recent likes on friends' or non-friends' status/share on facebook. Those are shown on facebook profile page in recent activities block and/or on activity log page of facebook.Although it is possible to get if user likes a page/fan page. Any help is appreciated.Need help..:-(Answer please...Thanks for feedback!

like image 641
Abhishek bhutra Avatar asked Apr 05 '12 08:04

Abhishek bhutra


1 Answers

I'll try to answer your question about the Facebook API.

You can get the current user's likes on status updates with this FQL query:

SELECT object_id FROM like WHERE user_id=me() AND object_type="status"

This will give you a list of the status updates the user has liked, sorted by time, with most recent first. This includes status updates only and not photo or video shares or any other object type. You can modify your query to a different object type by changing the type at the end of the query ("status") to one of these:

photo
album
event
group
note
link
video
application
check-in
review
comment
post

You'll need the

read_stream
user_likes

permissions for this query.

You can read more about the FQL 'like' table here.

like image 89
onosendai Avatar answered Sep 28 '22 00:09

onosendai