FQL - List comments of a post - facebook

I'm looking to run a competition on Facebook for my company by posting a question and entering the commenters into a random draw.
I was wondering if it was possible using either FQL or graph to list people who have commented on a particular post, along with the date of their comment?

Using the Graph API Explorer, if you use the following
/me?fields=id,name,posts.limit(10).fields(comments)
You can access all the comments on the 10 recent posts. Tinker around - you'll find what you need.

Related

How to get the list of the pages i have liked on facebook using Graph API or FQL?

I am scratching my head from a few days to get this thing done but i am not able to do it. developer.facebook says FQL is not available anymore and graph API do not provide any such thing.
https://developers.facebook.com/docs/graph-api/reference/v2.2/user/likes
You need the "user_likes" permission, check out the docs for example code.
This will only return the Facebook Pages you like, it is NOT possible to get a list of all external links you like afaik.

What's the equivalent of url_like on the Graph Api?

One of our apps uses FQL (more specifically the table url_like) as part of the core functionality.
With the upcoming deprecation of FQL we were wondering what is the Graph API endpoint (or set of endpoints) that could provide the same functionality (see likes on friend's links).
So far we haven't been able to. Any clue?
Much much appreciated.
Well, as far as I know there's no way yet to do this in a pure Graph API request. To get the total_shares, you could use something like
http://graph.facebook.com/?id=http://www.google.com
but this sums up all likes, shares, comments etc. so it's probably not what you're looking for.
You could use
https://api.facebook.com/method/links.getStats?urls=http://www.google.com&format=json
but this is also deprecated, and it's unclear how long this will work.
FQL by the way will be around for another 2 years after the next version of the Graph API will be released, see https://developers.facebook.com/docs/apps/versions#versioning So, for now I'd recommend to stick with the FQL solution.
Hava a look at How to get share counts using graph API to get some more info.

Facebook Graph API - /{user-id}/feed limits

I would like to use the facebook /{user-id}/feed to read facebook posts for a specific user. Before I go down the long road of setting up the Graph API, just wanted to get some quick questions answered.
How far back in time does the /{user-id}/feed go to return data?
Can I filter for specific words?
The Graph API returns all posts for a user since they joined. https://developers.facebook.com/docs/graph-api/reference/v2.1/user/feed/
Keyword filtering was available using FQL, which is now depreciated. There's no way to do this using the Graph API.

Embed Facebook Stream Filtered By Hashtags

I want to embed a stream of facebook posts onto a web page that is comprised of posts all around facebook containing a specific hash tag, but I'm not quite sure how to go about it. I had to do the same with twitter and instagram, but those were all fairly easy to accomplish. I'm just kind of looking for the best option right now, not so much on specifics. I've seen a couple of times the graph api for facebook as an option, but every time I see those they seem to be from a year ago, so not sure if it's out of date or if there is a better option out by now. Any recommendations on ways to go about it would be greatly appreciated.
See my answer here on how you can use the Search API for hashtags:
Need help on employing Graph Search parameters for hashtag query on facebook
Basically, you can call
https://graph.facebook.com/search?q=%23selfie&type=post&access_token={user_access_token}
Be aware that you have to use v1.0 of the Graph API, because in v2.0 searching for public posts will no longer be possible (https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_graph_api):
Public post search is no longer available.
(/search?type=post&q=foobar)
Graph API v1.0 will only be available until 30th of April, 2015.

How to get a list of people who have checked into a place in Facebook

I'm trying to use Facebook API to get a list of people who checked into a place.
When typing in the search box in Facebook UI People who have been to THE_PLACE I get a long list containing many people, also people who are not my friends or friends of friends.
However, when I try to get the same information from the Facebook API, I get a list that only contains my friends who checked in. The FQL I used is the following (and also some other variants that didn't do better): SELECT author_uid FROM checkin WHERE target_id = THE_UID_OF_THE_PLACE
Am I doing something wrong or is this simply impossible to get via API the same information I can access through the UI?
For privacy reasons, this is not possible at all. Also, FQL is deprecated. I have answered a similar question here: facebook graph API - get last checked users to place/page