android - Use Facebook credentials to log my application -


i want add log in facebook button application. tried follow guide.

getting started facebook sdk android

i tried android key hash. couldn't run on pc cmd.

this code tried.

i added home path %homepath%.

keytool -exportcert -alias androiddebugkey -keystore %homepath%\.android\debug.keystore | openssl sha1 -binary | openssl base64 

but shows error.

enter image description here

can me fix error.

firstly download openssl a link

second extract local disk c: name openssl i.e folder name

third set in environment variables. procedure follows

right click on my computer->properties->advanced->environment variables under system variables->click on path , click edit

now insert ';' semi-colon , paste path of folder openssl. ok.

now u can see openssl recognized command in cmd.

to keyhash execute follwing cmd

keytool -exportcert -alias androiddebugkey -keystore "path of ur debug.keystore" | "c:\openssl\bin\openssl.exe" sha1 -binary | "c:\openssl\bin\openssl.exe" base64 

solution warning---

warning: can't open config file: c:/openssl/openssl.cnf warning: can't open config file: c:/openssl/openssl.cnf openssl:error: 'base' invalid command. 

1st add below line in environment variable similar third step.

set openssl_conf=c:\openssl\bin\openssl.cfg

now run above cmd

keytool -exportcert -alias androiddebugkey -keystore "path of ur debug.keystore" | "c:\openssl\bin\openssl.exe" sha1 -binary | "c:\openssl\bin\openssl.exe" base64 

u warning keyhash returned in cmd...


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -