<?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>key hash &#8211; 記下來</title>
	<atom:link href="https://noter.tw/tag/key-hash/feed/" rel="self" type="application/rss+xml" />
	<link>https://noter.tw</link>
	<description>一路上踩到的坑、遇到的問題，一點一滴記下來，希望能幫助到需要的人~</description>
	<lastBuildDate>Tue, 02 Jul 2019 00:35:53 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.3</generator>

<image>
	<url>https://noter.tw/wp-content/uploads/cropped-old-1130742_1920-1-32x32.jpg</url>
	<title>key hash &#8211; 記下來</title>
	<link>https://noter.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Android使用Facebook SDK(申請篇)</title>
		<link>https://noter.tw/1921/android%e4%bd%bf%e7%94%a8facebook-sdk%e7%94%b3%e8%ab%8b%e7%af%87/</link>
					<comments>https://noter.tw/1921/android%e4%bd%bf%e7%94%a8facebook-sdk%e7%94%b3%e8%ab%8b%e7%af%87/#comments</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Fri, 03 Feb 2012 12:30:24 +0000</pubDate>
				<category><![CDATA[手機 App]]></category>
		<category><![CDATA[網頁前端]]></category>
		<category><![CDATA[key hash]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[keystore]]></category>
		<category><![CDATA[keytool]]></category>
		<guid isPermaLink="false">http://wazai.net/?p=1921</guid>

					<description><![CDATA[<p>Facebook在每個人的生活中占的比例已經越來越高，有很多不論是網站或是APP為了達到分享及快速散步的目的而紛紛加入「分享到Facebook」的功能(好玩的東西當然要跟FB上面的好朋友分享囉！)，這&#46;&#46;&#46;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/1921/android%e4%bd%bf%e7%94%a8facebook-sdk%e7%94%b3%e8%ab%8b%e7%af%87/" data-wpel-link="internal">Android使用Facebook SDK(申請篇)</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>Facebook在每個人的生活中占的比例已經越來越高，有很多不論是網站或是APP為了達到分享及快速散步的目的而紛紛加入「分享到Facebook」的功能(好玩的東西當然要跟FB上面的好朋友分享囉！)，這篇文章記錄怎麼申請Facebook API Key。<br />
<span id="more-1921"></span><br />
首先到<a href="http://developers.facebook.com/" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">http://developers.facebook.com/<span class="wpel-icon wpel-image wpel-icon-6"></span></a>建立一個新的應用程式，第一次使用可能會需要手機號碼或一些其他認證，註冊部分請參考<a href="http://wazai.net/?p=1197" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">在 WordPress 使用 Facebook 留言板 (Facebook Social Plugins Comments)@蛙齋<span class="wpel-icon wpel-image wpel-icon-6"></span></a>。<br />
註冊完成也建立了新的應用程式之後進入主畫面，點選右上角的「編輯設定」，最下方有個「Native Android App」旁邊要使用者輸入「Android Key Hash」，接下來小蛙記錄一下怎麼產生這個Android Key Hash。這邊小蛙建議一次就先把兩組Key Hash產生好，平常開發時的debugkey以及正式發布時用的.keystore。</p>
<ol>
<li>產生Facebook Key Hash需要使用到OpenSSL這個工具，可以先到<a href="http://gnuwin32.sourceforge.net/packages/openssl.htm" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">OpenSSL for Windows<span class="wpel-icon wpel-image wpel-icon-6"></span></a>下載<a href="http://downloads.sourceforge.net/gnuwin32/openssl-0.9.8h-1-bin.zip" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">Binaries Zip<span class="wpel-icon wpel-image wpel-icon-6"></span></a>這個版本。</li>
<li>解壓縮後把 openssl-0.9.8h-1-bin\bin\openssl.exe 複製到C:\Documents and Settings\Hans\.android\debug.keystore(也可以複製到其他地方，只是openssl小蛙只會在這使用到，所以直接放這邊)。</li>
<li>點選開始 -&gt; 執行 -&gt; 輸入「cmd」-&gt; 輸入「cd C:\Documents and Settings\Hans\.android\」(找到debugkey的位置)，如果這邊不知道在哪的話，可以到Eclipse -&gt; Preferences -&gt; Android -&gt; Build -&gt; Default debug keystore 中找到。</li>
<li>輸入以下指令
<pre class="brush: bash; gutter: true">keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl sha1 -binary | openssl base64
輸入金鑰儲存庫密碼: android</pre>
<p>相關資訊如下：<br />
Keystore name: &#8220;debug.keystore&#8221;<br />
Keystore password: &#8220;android&#8221;<br />
Key alias: &#8220;androiddebugkey&#8221;<br />
Key password: &#8220;android&#8221;<br />
CN: &#8220;CN=Android Debug,O=Android,C=US&#8221;</li>
<li>產生一段類似「egv25u/dcaukos35ac44e43ada4=」的Key，複製起來貼在上面提到的「Android Key Hash」中，點選最下方儲存。</li>
</ol>
<p>這樣就完成debug key的設定了，自己用來簽署的keystore設定方式也是相同，只要把-alias androiddebugkey以及-keystore debug.keystore更換成自己的設定即可。</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/1921/android%e4%bd%bf%e7%94%a8facebook-sdk%e7%94%b3%e8%ab%8b%e7%af%87/" data-wpel-link="internal">Android使用Facebook SDK(申請篇)</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/1921/android%e4%bd%bf%e7%94%a8facebook-sdk%e7%94%b3%e8%ab%8b%e7%af%87/feed/</wfw:commentRss>
			<slash:comments>12</slash:comments>
		
		
			</item>
	</channel>
</rss>
