Learn R Programming

Rinstapkg (version 0.1.0)

ig_like: Like or Unlike a Post

Description

This function takes the media_id of a post and likes/unlikes that post for you.

Usage

ig_like(media_id, verbose = FALSE)

ig_unlike(media_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.

verbose

logical; do you want informative messages?

Examples

Run this code
# NOT RUN {
last_post_media_id <- ig_my_timeline(paginate = FALSE)$id[1]
liked_result <- ig_like(last_post_media_id)
unliked_result <- ig_unlike(last_post_media_id)
# }

Run the code above in your browser using DataLab