The R package instaR
is authored and maintained by Pablo Barbera and it helps R users to access the Instagram API through R. This package provides a series of functions to access information from Instagram.
We can install the latest instaR
package directly from the GitHub repository using the following code and load the package into R using the library
function. The package devtools
is required in order to install directly from GitHub:
library(devtools) install_github("pablobarbera/instaR/instaR") library(instaR)
After installing the required package for enabling the access to the Instagram API, we will proceed to make the authentication process from R. In the following code, the variable app_id
holds the actual Client ID of your app and the variable app_secret
holds the Client Secret. Using the function instaOAuth
, we generate the access token that makes it possible to make an authenticated call to the Instagram API. The token can be saved...