I am having trouble accessing the access token that is required on all api calls to get any data. The credentials['token'] does not work for me. Any insights on where in the maybe the request.env is would be? I can get the token through postman using https://api.instagram.com/oauth/authorize/?client_id=#{ENV['INSTAGRAM_ID']}&redirect_uri=REDIRECT_URI&response_type=token but it comes back in the cookies. All of the documentation that I see says to just get it the once. But wouldn't it expire?
EDIT: Sorry to have wasted time. I got it to work, haha.
I am having trouble accessing the access token that is required on all api calls to get any data. The
credentials['token']
does not work for me. Any insights on where in the maybe therequest.env
is would be? I can get the token through postman usinghttps://api.instagram.com/oauth/authorize/?client_id=#{ENV['INSTAGRAM_ID']}&redirect_uri=REDIRECT_URI&response_type=token
but it comes back in the cookies. All of the documentation that I see says to just get it the once. But wouldn't it expire?EDIT: Sorry to have wasted time. I got it to work, haha.