I get these updates on my Facebook feed saying John GuyYouKnow
commented on the following link: insert stupid link here
.
Naturally I am now curious what my friend said about that stupid link. So I click on the comments, only to find out there are about 30,000 of them. There is no way I'm finding my friend's comment in there. So why did Facebook even bother to notify me? Or am I missing something… is there a way to locate that comment easily?
Best Answer
You can do this using the Facebook Graph API explorer:
Go to the page of the link you wish to analyze the comments for (not your News Feed, the page's Timeline, or anything else). This can be done by clicking on the timestamp of the post. Here is an example off of Facebook's official page/timeline:
The URI of the page should be in this format. Note the postID part. It should be all numbers. If there are any extra characters such as
?
or#
following it, just copy the numeric part.Open the Graph API explorer.
Ensure that the dropdown menu says
GET
. Beside that menu, there is a box containing your user ID along with some parameters. Replace the contents of that box with the post ID you just copied.Submit the box. The page will reload with the details of the "node" showing in the results pane.
On the box to the left of the results pane, click the
+
button beneathNode
.Click
comments
in the connections group. This tells the graph API that you only want to see the comments associated with this node (along with the ID, which is returned with every request).Underneath
comments
, you can click sub-options for this field by choosing from an indented dropdown list:For simplicity, let's just select three fields:
limit
,from
, andmessage
. You may play around with the other options if you wish (it's certainly a very interesting tool!)Resubmit the form. Note that the results panel now shows ten comments associated with the node (aka the shared link, or the "graph item").
To show more than ten comments, change the parameter (number inside the brackets) of the
limit
field. I wouldn't recommend going over 1500, maybe less if you're on a slower connection.Resubmit the form to see the first
x
comments of the node.To show the next
y
comments, add.offset(y)
into the URI of the API call, wherey
is the number you want to start from. So for instance, if I'm retrieving 1000 comments at a time and I want to show comments 3000 through 4000, mylimit
would be1000
and myoffset
would be3000
. I've had problems with small limits and large offsets, so if you have an issue where no data is retrieved then try submitting again or increasing your limit.At any point you can submit the form and do a CTRL+F for your friend's name and look at the
message
field associated with the comment in the results pane. The message is the one underneath (it's fairly evident with the curly brackets and indenting).There might even be a way to do query only comments from a certain name using FQL, but I haven't explored that far yet into the Facebook Graph API Explorer.
Hope this helps!