# NOT RUN {
bieber_user_id <- ig_get_user_id("justinbieber")
# By default, ig_get_followers will retrieve the top 10 pages of follower data.
# This is because IG users like Justin Bieber have 100M+ followers, so it could
# take a long time to pull. If you would really like to get all users, then set
# the max_pages argument to Inf.
bieber_followers <- ig_get_followers(bieber_user_id)
bieber_following <- ig_get_following(bieber_user_id)
# }
Run the code above in your browser using DataLab