Do I need to add new key hash to Facebook app setting every time I change computer?

前端 未结 1 1945
终归单人心
终归单人心 2020-12-16 04:41

I download Hackbook example from git then, I create and run project. It show that Login failed: invalid_key(I didn\'t change anything) So, I try create my n

相关标签:
1条回答
  • 2020-12-16 05:12

    The answer based on my experience

    Do I need to add new key hash every time I change development computer(In case, there are many collaborators, Do they need to change Facebook_APP_ID everytime ?

    You don't need to change Facebook_APP_ID everytime. Once you created facebook app, you can add multiple key hash to it. If you have many collaborators, get keyhash from them and add the keyhash to your facebook app.

    In case, I wanna launch this app to market. Do I need to change this keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 when i ask for hash key ?

    Yes. You replace ~/.android/debug.keystore with your own publishing keystore and again add that keyhash to facebook app.


    Another alternative,

    if you don't want to add a lot of keyhash to facebook app, you can always use one common debug key to sign your android app for all collaborators.

    But of course, don't share your publishing key to everyone.

    0 讨论(0)
提交回复
热议问题