Rails app with devise+omniauth+instagram
Try to search for tags.
The code is pretty straightforward:
Instagram.configure do |config|
config.client_id = Rails.application.secrets.instagram[:key_id]
config.client_secret = Rails.application.secrets.instagram[:secret]
end
client = Instagram.client(access_token: "myaccesstoken")
client.tag("cat")
=> #<Hashie::Mash media_count=139391443 name="cat">
client.tag_recent_media("cat", count: 10)
=> #<Hashie::Array []>
Although the tag search tells me there is 139391443 medias with the tag "cat", I get zero result when looking for them.
Is the tag search only search in my user's profile ? or user feed ?
I wanna do a full public tag search like in twitter.