Facebook & LinkedIn integration not working in beta release [closed]

自古美人都是妖i 提交于 2019-12-13 07:58:48

问题


I have some strange issue regarding Facebook & Linkedin integration,

I have integrated login through Facebook & LinkedIn in my application.

Login Working fine in debug & release build. But when I upload my application in beta release with signed apk(release build), login functionality is not working neither Facebook nor LinkedIn.

I have generated key hash using

FOR DEBUG

keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl sha1 -binary | openssl base64

FOR RELEASE

keytool -exportcert -alias <aliasName> -keystore <keystoreFilePath> | openssl sha1 -binary | openssl base64

I am getting Invalid key hash. error.

Here is the screenshot of the same,


回答1:


After hours of research on this I come to know something new & interesting. Here it goes,

When we upload our application on Google play console, It signs it & generates a signature certificate for application. As a part of this process our SHA1 value gets replaced & gets new SHA1 value assigned by signature certificate.

One can find this value at Google Play Console > All Applications > You Application > Version Management > Signature of the app > Certificate of signature of the app > SHA-1 fingerprint of the certificate

NOTE : Please copy manually because coping from given button (next to SHA1 key) also includes "SHA1:" text, which is actually not part of SHA1 of the application.

Once copied properly, convert your SHA1 to base-64 format. You can do so using this link SHA1 Convert to Base64.

At the end copy hash key value named as Output (base64) on SHA1 Convert to Base64.

Now add this hash key to your Facebook & LinkedIn developer portal.



来源:https://stackoverflow.com/questions/50208068/facebook-linkedin-integration-not-working-in-beta-release

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!