The new app creation page in foursquare asks me for Android HasKeys. It looks very similar to the SHA1 key. is it the same. Else How do I get a android Hash key?Attached pic from the website. The command also given below. How do I get mystore.keystore? Should I register in google developer site to get one? Please help
keytool -list -v -keystore mystore.keystore
Open a command prompt from your jre/bin folder by holding shift and right clicking it will say open comand prompt here. Then input your file path to your key store. If that doesn't work try this http://limbaniandroid.blogspot.com/2013/04/how-to-get-hash-key-for-integarte.html?m=1#comment-form
But that looks like it want your md5 thumbprint that you can see as you sighn your app in the last screen in eclipse.
look at this
How do I generate my MD5 and SHA1 thumbprints using eclipse for debug keystore (Android)
Related
I've got blank screen only at release version.
(debug is fine.)
I've tried most of answer in stackoverflow... but it didn't works....
Please check below images.
I've put the key on debug & release xml and also make them list on console.developers.google.com.
What kind of things I can do more??
(And this is basic project what Android studio support which I can choose when I made new project at Android studio.)
enter image description hereenter image description here
First check on your Google Map Console's account whether your API is restricted or public.
if it is restricted for android then you have to provide package name with SHA1.
you can generate your SHA1 from command prompt
keytool -export -alias YourAliasName -keystore "your_jsk_path" -list -v
and also after deploying on playstore you have to add that SHA1.
you can get that SHA1 from Release Management > App Signing >App Signing Certificate.
I follow this link: Here
But when i run in my device. Can not show map. It's just show white screen with logo google at left.
Some body can help me please? Sorry because my english.
Create debugging API key and Release API key.
Step 1:
In Commend Prompt
Now locate to jdk in C drive(Considering for windows and assigning C drive)
C:\Program Files\Java\jdk1.7.0\bin>keytool -list -v -keystore E:\A.keystore -alias A
So it will create SHA-1 finger print.
A.keystore is an Keystore, for debugging this file found in C:\Users\User\.android file name is debug.keystore, for release you created the Keystore file.
Step 2
Go to google api console.
Generate new api key for android you have to used this SHA-1 and current playstore package name.
Put Api key into your map.
I'm new to developing Android apps and I wanted to create a Google map inside of a Fragment. So far I've gotten the part where I need the API key and I'm confused by the instructions from the Android developer site and everything I've found online hasn't cleared my confusion.
Could someone provide me with a step by step of how to get my SHA1 fingerprint on Windows 7?
You cannot obtain the API_KEY until you get your SHA1.
Click here to get a nice tutorial that will guide you step by step with images (Specifically when you are operating on Windows 7).
Hope this would Help!!
There are two kinds of fingerprints, debug and release. Assuming you want a release one, then from a console window, you need to run this command to get the fingerprint
keytool -exportcert -alias MY_RELEASE_KEY_ALIAS -keystore MY_FULL_PATH_TO_RELEASE_KEYSTORE_FILE -list -v
The keytool program is in your JDK bin folder. So on Windows, something like C:\Program Files\Java\jdk1.8.0_20\bin is where you should find keytool
Last thing to note is that MY_FULL_PATH_TO_RELEASE_KEYSTORE_FILE in the command above should be the full path to your .keystore file, including the file name
After all that, you will be finally be provided with several fingerprints, including the SHA1. You can copy that, and go back to Google Developers Console and paste it as a new line in the allowed Android Applications, with your package name added to the end, separated by a semi-colon.
I am trying Android Facebook integration for an app. I am new to this.
I have got the Facebook SDK & I am trying to run a few samples from there. When I run the samples I get this error " (# 404) Keyhash XXXXXX does not match any stored key hashes ".
The XXXXXX is probably my keyhash, I did some basic search about what it is. I read this and I compared the XXXXXX value with the Java Keytool.exe from my machine. There was a match with these numbers.
I have to get this working - I feel I have to add this somewhere on Facebook developer site. Can someone tell me if thats correct & also how to do it. OR my approach may be wrong too, if you can guide me to the correct approach. That will be helpful.
Thanks!
After spending few hours and referring few answers here. finally its worked for me. few observations:
hashcode generated by Keytool is not same as hashcode showing in exception. Use the later one.
For Facebook Sample apps we need to add the hash for SampleApp.Here if we entered the hash and click on SaveChanges its clearing and not saved.So before clicking the SaveChanges need to hit the enter key and make sure its not clearing.
need to append = at the end of hashkey shown in exception.
Assuming that you know how to create a hash key, I suggest you to follow the below steps to add a hash key in FaceBook developer console of your app,
1. After creating a app, click on settings from the left side panel.
2. Select add platform.
3. From the pop up, select Android as your platform.
4. There you will find fields to enter Package Name, Class Name, and hash Keys.
5. Fill up the respective fields.You can enter many hash keys as well.
Note : If you enter wrong hash key, then it will show you the same error again.
hope it helps.
While generating release Hash key, Note this
Windows:
When generating the hash key for production you need to use openssl-0.9.8e_X64.zip on windows, you cannot use openssl-0.9.8k_X64.zip
The versions produce different hash keys, for some reason 9.8k does not work correctly... 9.8e does.
OR
Use this below flow
This is how I solved this problem
Download your APK to your PC in java jdk\bin folder
in my case C:\Program Files\Java\jdk1.7.0_121\bin
go to java jdk\bin folder and run cmd then
copy the following command in your cmd
keytool -list -printcert -jarfile yourapkname.apk
Copy the SHA1 value to your clip board
like this CD:A1:EA:A3:5C:5C:68:FB:FA:0A:6B:E5:5A:72:64:DD:26:8D:44:84
and open Hex To Base 64 to convert your SHA1 value to base64.
For MAC
Step 1:
Generate SHA1 key by using below command
keytool -list -v -keystore
Enter Keystore password.
Copy SHA1 Key.
Step 2:
Open this link - Hex To Base 64
Paste the SHA1 Key in Hex String
Click convert button
Get the Release Keyhash in Output value
In addition to being aware of hash issues, you also need to make sure that the Facebook account on the device is an admin account, develop account or an account that has permission to participate in the test.
I have a strange problem using the facebook plugin with phonegap build.
It sounds like a certificate problem but I can't figure it out.
I tried the sample code found here : github.com/amirudin/pgb-fbconnect
I followed instructions in the readme.md file.
When I first start the android app and when I click on "login" button, everything works fine and I can connect myself to the facebook app.
Now, I hit the logout button. Ok again, it works.
But if I hit the login button again, I have a facebook error message : "invalid android_key_parameter. The key xxxxxxxxxxxxxx does not match any allowed key."
But the xxxxxx key in the message does not correspond to the key I've put in the facebook app config panel.
I have a little video of my problem here : Dropbox video
I don't understand why it works fine during the first login and fail during the second one .... It seems that the second time, the signature change.
Help!!
I created a github repo if someone want to test it. You just have to change the APP_NAME and APP_ID in the config.xml and the APP_ID in index.html
It's very frustrating to have something which "almost" works.
Did you succeed in reproducing my bug/behavior ? (login + logout + login = fail)
The problem you are facing because of you are not using right keystore file, Signed key, and key algorithm. You will need to generate a hash of your Android key(s) and submit those to the Developers page on Facebook.
If you are generating this hash on Windows (specifically 64 bit versions), please use version 0.9.8e or 0.9.8d of OpenSSL for Windows and not 0.9.8k.
Once you download openssl, open the command prompt (cmd.exe) as an Administrator, then run the following command:
keytool -genkey -v -keystore [keystore_name].keystore -alias [alias_name] -keyalg RSA -keysize 2048 -validity 10000
Please note the alias_name, and keep all passwords andriod
Now, go to your phonegap account >> edit account >> Click on signing keys tab >> Click 'add a key...' and supply the following info:
Title - anything
Alias - alias_name that you have given while generating the keystore file.
Then, create a new hash key using the keystore file that you generated and then update that hash key in your facebook app.
Use below command to generate hash key.
keytool -exportcert -alias [alias_name] -keystore [keystore_filename.keystore] | openssl sha1 -binary | openssl base64
That should be it!