Use Facebook credentials to log my application

anuruddhika

I want to add log in with Facebook button to my application. So i tried to follow this guide.

Getting Started with the Facebook SDK for Android

I tried to get Android key hash. But i couldn't to run it on my PC cmd.

This is code i tried.

i added my home path to this %HOMEPATH%.

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

But it shows like this error.

enter image description here

Can anyone help me to fix this error.

kevz

Firstly download openssl from this a link

Second extract it to Local disk C: name it openssl i.e folder name

third set it in Environment variables. procedure as follows

right click on My computer->properties->advanced->environment variables under system variables->click on path and click edit

Now insert a ';' semi-colon and paste the path of folder openssl. then ok.

now u can see openssl is recognized as command in cmd.

to get 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 for the warning---

WARNING: can't open config file: C:/OpenSSL/openssl.cnf
WARNING: can't open config file: C:/OpenSSL/openssl.cnf
openssl:Error: 'base' is an invalid command.

1st add below line in environment variable as similar to 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 do get warning but keyHash is returned in cmd...

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application

From Dev

How I could use an independent log4j instance in my vert.x application?

From Dev

How to Invite facebook friends though my application?

From Dev

how to use facebook credentials to log in to my native mobile web application

From Dev

Facebook sdk for Android - Get friends that use my application

From Dev

How to check if a user of my web application is trying to login with different credentials?

From Dev

How to use Log4net to log in File in Windows Application

From Dev

How to save twitter authentication credentials for repeated use in a shiny application?

From Dev

Use Azure for desktop application log

From Dev

Rename file in use by my application

From Dev

Open Facebook application from my app

From Dev

Application of neural network for use with log file data

From Dev

How to use Facebook and Flickr in one application?

From Dev

How to clear the credentials of facebook in ios application, when i hit on back to app button on the top in safari browser?

From Dev

android send facebook message from my application

From Dev

integrating my application with Call log core application in BlackBerry10?

From Dev

How do I use my current credentials with Remote Desktop?

From Dev

Importing Facebook SDK into my application

From Dev

facebook php sdk - facebook login to my website success .. logout will log me out of facebook but not my website

From Dev

APEX: How to link application log-in credentials to a table in back-end database

From Dev

Integrated Security=true is trying to log me with my windows credentials even though I want to use SQL authentication

From Dev

Firebase and Cordova - use Facebook's app credentials for login

From Dev

My application runs as sudo, how do I make it git pull using my user's credentials?

From Dev

How to check if a user of my web application is trying to login with different credentials?

From Dev

Unable to use FQL with my Facebook application

From Dev

Use a sql database table properties to use as log In credentials for user in a web application

From Dev

How to save twitter authentication credentials for repeated use in a shiny application?

From Dev

Log deleted credentials from Windows Credentials Manager

From Dev

How to use facebook login in my app

Related Related

  1. 1

    Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application

  2. 2

    How I could use an independent log4j instance in my vert.x application?

  3. 3

    How to Invite facebook friends though my application?

  4. 4

    how to use facebook credentials to log in to my native mobile web application

  5. 5

    Facebook sdk for Android - Get friends that use my application

  6. 6

    How to check if a user of my web application is trying to login with different credentials?

  7. 7

    How to use Log4net to log in File in Windows Application

  8. 8

    How to save twitter authentication credentials for repeated use in a shiny application?

  9. 9

    Use Azure for desktop application log

  10. 10

    Rename file in use by my application

  11. 11

    Open Facebook application from my app

  12. 12

    Application of neural network for use with log file data

  13. 13

    How to use Facebook and Flickr in one application?

  14. 14

    How to clear the credentials of facebook in ios application, when i hit on back to app button on the top in safari browser?

  15. 15

    android send facebook message from my application

  16. 16

    integrating my application with Call log core application in BlackBerry10?

  17. 17

    How do I use my current credentials with Remote Desktop?

  18. 18

    Importing Facebook SDK into my application

  19. 19

    facebook php sdk - facebook login to my website success .. logout will log me out of facebook but not my website

  20. 20

    APEX: How to link application log-in credentials to a table in back-end database

  21. 21

    Integrated Security=true is trying to log me with my windows credentials even though I want to use SQL authentication

  22. 22

    Firebase and Cordova - use Facebook's app credentials for login

  23. 23

    My application runs as sudo, how do I make it git pull using my user's credentials?

  24. 24

    How to check if a user of my web application is trying to login with different credentials?

  25. 25

    Unable to use FQL with my Facebook application

  26. 26

    Use a sql database table properties to use as log In credentials for user in a web application

  27. 27

    How to save twitter authentication credentials for repeated use in a shiny application?

  28. 28

    Log deleted credentials from Windows Credentials Manager

  29. 29

    How to use facebook login in my app

HotTag

Archive