<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BUHI | ウダ2Blog</title>
	<atom:link href="https://uda2.com/blog/tag/buhi/feed/" rel="self" type="application/rss+xml" />
	<link>https://uda2.com/blog</link>
	<description>大阪でフリーランスとしてWEB制作している管理人が気になった技術をメモったり、作ったツールの紹介などを綴っているブログです。</description>
	<lastBuildDate>Tue, 30 Oct 2018 15:53:26 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Instagram APIでフレブルBUHI画像閲覧</title>
		<link>https://uda2.com/blog/buhi/</link>
					<comments>https://uda2.com/blog/buhi/#respond</comments>
		
		<dc:creator><![CDATA[uda2]]></dc:creator>
		<pubDate>Tue, 10 Mar 2015 06:33:56 +0000</pubDate>
				<category><![CDATA[制作日記]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[BUHI]]></category>
		<category><![CDATA[SNS]]></category>
		<category><![CDATA[犬]]></category>
		<category><![CDATA[ｊQuery]]></category>
		<guid isPermaLink="false">http://uda2.com/blog/?p=1857</guid>

					<description><![CDATA[<p>InstagramやPinterestなど画像系SNSのAPI使ってなんかできないかなとチュートリアル系サイトでを見てると Instagram APIから画像データを取得する方法 Instagram APIを使ってねこ大</p>
The post <a href="https://uda2.com/blog/buhi/">Instagram APIでフレブルBUHI画像閲覧</a> first appeared on <a href="https://uda2.com/blog">ウダ2Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>InstagramやPinterestなど画像系SNSのAPI使ってなんかできないかなとチュートリアル系サイトでを見てると<br />
<a href="http://iaseteam.eshizuoka.jp/e1237677.html" target="_blank">Instagram APIから画像データを取得する方法</a><br />
<a href="http://blog.ruedap.com/2011/02/28/instagram-api-of-exclusive-use-for-cat-lovers-nekostagram" target="_blank">Instagram APIを使ってねこ大好き専用の「Nekostagram」を作ってみた</a><br />
と猫を集めてるのがあり、<a href="http://lab.appa.pe/2014-12/sns-active-ranking.html" target="_blank">12のメジャーなSNSのアクティブ率を比較してみた &#8211; App Ape Lab</a>によると昨年末の国内Android端末ではInstagramがアクティブ率2位になっているので、とりあえずフレブル系の犬を集めるためハッシュ名を「<a href="http://iconosquare.com/tag/buhi/" target="_blank">#buhi</a>」と考えてたら既にありました。（海外でもブヒっていうんですね。）<br />
ハッシュがあるなら、Instagramから画像を引っ張ってきて表示するサイトを作るだけなんでやってみた。<br />
<span id="more-1857"></span><br />
<a href="https://instagram.com/developer/#" target="_blank">Instagram Developer Documentation</a>でデベロッパー登録して、PHPでoauthで認証してアクセストークンを拾って、そのアクセストークンで検索して表示という感じの流れで、APIでよくあるパターンのやつで、今回のタグ検索の仕組みまでは半日でできた。難しいとこは毎度のことだが英語なので翻訳しまくりになるのと古い写真と新しい写真の何順で送られて来て何を送れば次のデータが入手可能なのかを理解できず結局送られてくるデータをjsonをパースするPHPを作って検証しながら進める必要があった。（なお、データは新しいものから順に送られて来ます。）</p>
<p>ここから、ロゴやらデザインやらUIやら検証やらで丸一日ぐらいかかって、計1.5日ぐらいで出来た。</p>
<p>フレブルの写真をInstagramで検索して続々と表示するだけのWEBサイト「<a href="http://ipetcards.com/buhi/" target="_blank">BUHI</a>」です。</p>
<p>今回はお手本が既にある制作なので一日ぐらいで作りたがったがUI的な部分に時間がかかってしまった。<br />
機能的には下記のような感じです。<br />
・スマホ対応<br />
・上にスクロールしすぎたら新着データを読む<br />
・下にスクロールし底に近くなったら古いデータを読む<br />
・Googleがかなり下までスクロールするのである程度で止める。<br />
・読み込み中はボタンの色を変えて連続読み込みを停止する。<br />
・動画にも対応<br />
・ホバー又はクリックでテキスト情報表示へ切り替え<br />
・右上に「いいね数」表示</p>The post <a href="https://uda2.com/blog/buhi/">Instagram APIでフレブルBUHI画像閲覧</a> first appeared on <a href="https://uda2.com/blog">ウダ2Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://uda2.com/blog/buhi/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
