This function takes the media_id
of a post and text for a comment or the
id of a comment to manipulate the comment on the post.
ig_comment(media_id, comment_text, verbose = FALSE) ig_comment_delete(media_id, comment_id, verbose = FALSE)
media_id | numeric; the unique id to identify a post which can be
found in the |
---|---|
comment_text | character; the text that would be posted as a comment underneath the post |
verbose | logical; do you want informative messages? |
comment_id | numeric; the unique id to identify a post which can be
found in the |
#>#> #>#> Error: Status: fail #> Message: login_requiredcomment_result <- ig_comment(last_post_media_id, comment_text = "New Comment!")#> Error in sprintf("media/%s/comment/", media_id): object 'last_post_media_id' not foundcomment_media_id <- comment_result$comment$media_id#> Error in eval(expr, envir, enclos): object 'comment_result' not founddeletion_result <- ig_comment_delete(last_post_media_id, comment_media_id)#> Error in sprintf("media/%s/comment/%s/delete/", media_id, comment_id): object 'last_post_media_id' not found