getComments {instaR} | R Documentation |
Returns up to 150 comments on an instagram post
Description
getComments
retrieves up to 150 recent comments on an instagram post,
including text, author and date.
Usage
getComments(id, token, verbose = TRUE)
Arguments
id |
String, id of instagram post. |
token |
An OAuth token created with |
verbose |
If |
Details
IMPORTANT: After June 1st, 2016 only applications that have passed permission review by Instagram will be allowed to access data for users other than the authenticated user. See https://www.instagram.com/developer/review/ for more information.
Author(s)
Pablo Barbera pablo.barbera@nyu.edu
Examples
## Not run:
## See examples for instaOAuth to know how token was created.
## Downloading list of followers of @senjohnmccain
load("my_oauth")
obama <- getUserMedia( username="barackobama", token=my_oauth )
comments <- getComments( obama$id[1], token=my_oauth )
## End(Not run)
[Package instaR version 0.2.4 Index]