I'm currently using the Instagram API to like photos and follow users. I'm passing in the access token to make the requests, but for some reason I keep getting client request limit reached. I'm not sure why since the requests are being sent with an access token saved when users authenticate with my app.
here's the gem I'm using to connect to the API in my Rails app: https://github.com/Instagram/instagram-ruby-gem
def self.follow_users(token, tags, user_id)
tags.each do |hashtag|
Instagram.tag_recent_media(hashtag.content).data.each do |data|
Instagram.follow_user(data.user.id, :access_token => token)
end
end
end