Computer >> Máy Tính >  >> Lập trình >> Android

Cách tạo Facebook Key Hash trên Android?

Ví dụ này minh họa về Cách tạo Facebook Key Hash trên Android

Tạo một băm khóa phát triển

Mac OS :- Thực hiện lệnh dưới đây trong terminal keytool -exportcert -alias androiddebugkey -keystore ~ ​​/ .android / debug.keystore | openssl sha1 -binary | openssl base64

Windows :- Thực hiện lệnh dưới đây trong dấu nhắc lệnh keytool -exportcert -alias androiddebugkey -keystore "C:\ Users \ USERNAME \ .android \ debug.keystore" | "PATH_TO_OPENSSL_LIBRARY \ bin \ openssl" sha1 -binary | "PATH_TO_OPENSSL_LIBRARY \ bin \ openssl" base64

Tạo Băm khóa phát hành

keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64

Cách tạo Facebook Key Hash trên Android?