OAuth token based authentication with the Instagram API, with caching
options for automatic authentication (i.e. avoid using the browser).
In order to collect data from Instagram, the user must first authenticate
with Instagram's Application Programming Interface (API). Furthermore, the
user must create a Instagram 'app' and get an 'app secret'.
To get a Instagram 'app ID' and 'API secret', please see the Instagram
document at: https://instagram.com/developer/authentication/
One problem with Instagram authentication through R is that it normally
requires the user to authenticate using their browser each time they wish to
collect data. The useCachedToken
argument provides a way to
circumvent this, by saving and loading an authenticated 'token' file stored
in the working directory. If the useCachedToken
argument is set to
TRUE
, then the browser is not necessary for future sessions.