ig_comment_delete_bulk: Delete Comments on a Post in Bulk

Description Usage Arguments Examples

Description

This function takes the media_id of a post as well as one or more comment_ids and then deletes all of those comments

Usage

1
ig_comment_delete_bulk(media_id, comment_id, verbose = FALSE)

Arguments

media_id

numeric; the unique id to identify a post which can be found in the id, not the pk field, of posts returned via many of the functions retrieving feeds.

comment_id

numeric; the unique id to identify a post which can be found in the "id" on other comments returned via the Instagram API

verbose

logical; do you want informative messages?

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
last_post_media_id <- ig_my_timeline(paginate = FALSE)$id[1]
comment_result1 <- ig_comment(last_post_media_id, 
                             comment_text = "New Comment #1")
comment1_media_id <- comment_result1$comment$media_id 
comment_result2 <- ig_comment(last_post_media_id, 
                             comment_text = "New Comment #2")
comment2_media_id <- comment_result2$comment$media_id                               
deletion_result <- ig_comment_delete(last_post_media_id, 
                                     c(comment1_media_id, 
                                       comment2_media_id))

Rinstapkg documentation built on June 8, 2019, 9:03 a.m.