As the fql is deprecated for versions v2.1 and higher, So I am not able to access the data using fql. Is there any way to fetch only my posts by group id.
Please correct me, if Im wrong.
You can get all posts of a group via the GraphAPI endpoint
v2.5/{group-id}/feed
Anyways, you are not able to perform this action if you are not "Admin" of the specific group. You need the additional permission of 'user_managed_groups'.
To drill it down to a specific user query against
v2.5/{group-id}/feed?fields=from,message
Then you have have the users' id and the message. Just iterate of the response and filter out by the user of your choice.
Related
I'm trying to write some application that scan user's group posts. When I read the group feed posts using the API I’m interested to get some information on the one who posted this post ('from' field). The graph API today gives only the id and the name of this person. I'm interested also in his work place. I tried taking the user id and to access the / resource and to get his work field , but this field is not returned. When I’m looking on the same user profile in Facebook I see his work place is public, even I’m not connected with him.
Anything I can do to get this user work with the existing Facebook API?
Normally, if the work history info is not public, you'll need the "user_work_history" permission (see https://developers.facebook.com/docs/facebook-login/permissions#reference-extended-profile).
If it's public, you can try calling the
/{USER_ID}?fields=id,work
I am trying to determine if it is possible to get a list of Facebook users and IDs (via JSON I assume) that have checked in to a place/page.
Is this even possible? Do you need an access token from each user account to access this information? I found Facebook's documentation to be less than helpful...any help will be much appreciated!
You can query the FQL checkin table but at most (based on the permissions granted) you'll get the user's & her friends' checkins.
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!
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.
I'm using a FQL query to access the Facebook User table and I'm trying to access the is_minor column.
I know I'm submitting the FQL query properly, because all the other information I'm requesting in the query, including Birthday, is being properly returned. However, the response for is_minor is always blank. I've tested this with several users who I know for certain are minors (under 18 years old), but the field is still blank in my FQL response.
Is there a special permission that is needed in order to access this column in the FQL table?? Any one know why I'm not seeing any data for this field in the FQL response?
(I want to access this field because I want to prevent my app from processing certain actions with Users, or Friends of Users, who are minors. In many cases the User or Friend may not have made their Birthday available through the API, so I may not be able to calculate their age myself. I just want to know if they're 18 or older.)
I receive an email once a week with information on my Fan Page (like how many more users than last update have become my fan, how many posts, etc). Is it possible to get this info via the FB API so I can show this data where I want outside FB and outside my email?
One of the way is using fql of facebook :
Group FQL Table
After you can get the group ids, you can use the group_member tables to get all members from that group:
Group Member FQL Table
You can even use Graph API if you want but I am not an expert of that