I'm trying to display more than 20 photos feed in a website like this:
http://snap20.com.br/instagram/
There's any way to show?
I'm trying to display more than 20 photos feed in a website like this:
http://snap20.com.br/instagram/
There's any way to show?
単純。&count=-1
API呼び出しの後ろに追加するだけです。例えば:
https://api.instagram.com/v1/tags/YOURTAG/media/recent?access_token=YOURACCESSTOKEN&count=-1
* 2014 年 4 月の更新(クレジット: @user1406691):count=-1
は利用できなくなりました。応答:
{"meta":{"error_type":"APIInvalidParametersError","code":400,
"error_message":"Count must be larger than zero."}}
代わりにこれを使用したい場合があります:
https://api.instagram.com/v1/tags/YOURTAG/media/recent?access_token=YOURACCESSTOKEN&count=35
rss + db による別の方法もありますが、1 時間あたり 30 回の呼び出しに制限されていませんが、より長くなります。
Instagram の API には 20 個の画像制限があります。このスレッドと私の回答を確認してください。
また、ページネーションをバイパスしてすべての結果を表示するには、次のリンクを参照してください。
http://thegregthompson.com/displaying-instagram-images-ignoring-page-pagination/