3
votes

I'm trying to allow a user to select photos from their instagram feed in my application.

I'm using omniauth to authenticate the user thru the omniauth-instagram gem. I also have the official instagram rails gem, and when I run Instagram.user_recent_media(user_instagram_id), it tells me I need an access token.

I try saving the code parameter on the callback, but I cannot create an access token from this key. Any tips on pulling a user's media feed?

1

1 Answers

0
votes

I have had success doing the following:

client = Instagram.client(:access_token => token)
client.user_recent_media(:count => 200)