2011-10-14 5 views
0

申し訳ありません、これは愚かな質問ですが、本当にfacebokkアプリページにハッシュキーを登録する目的が何であるか知りたいのですが。私はどこにでも私のアプリケーションでそれを使用する(私たちはそれを使用しなければならない場合は私に教えてください)。facebokkアプリページにハッシュキーを登録する目的は何ですか?

質問は私のアプリがハッシュキーを使って認証される方法ですか? ハッシュキーを使って私のアプリケーションに署名する方法??? あなたの助けをありがとう!

答えて

2
Facebook requires an additional layer of security for mobile apps in the form of an 
application signature. You need to put your Android application signature into your 
Facebook application settings. You can generate a signature by running the keytool that 
comes with the Android SDK. The following shows how to export the key for your app using 
the debug defaults specified by the Android SDK and Eclipse. 

また、あなたは間違ったキーハッシュを使用する場合は、無効なキーのエラーを取得します。このHash Key for Single Sign-On

またif i put another Key Hash which is not generated by me

を確認してください。

このLogin failed for Invalid Key

0

これは別のセキュリティ層として使用されています。どれくらい実際に使用されているか、私は100%確実ではありません。しかし、ここにいくつか役立つかもしれないリンクがあります。

Use of the Facebook App Key Hash

https://developers.facebook.com/docs/mobile/android/build/#sig

+0

雅をチェックし、私はそれを知っているが、私は私によって生成されていない別のハッシュキーを入れたらどう。 – Sunny

+0

無効なキーの例外が表示されるようです。それは必要なセキュリティ上の予防措置のように見えます。それは、ユーザーを認証しようとするたびにそれを使用します。 githubのjimbruによるコメントには、https://github.com/facebook/facebook-android-sdk/issues/140の情報がいくつかあります。 – mikesir87

関連する問題