I am trying to integrate facebook into my application and therefore follow the training course: Facebook Android , but I can not get the first example (Single Sign-On) to work. When my application loads, I get a facebook dialog, but it just says: "An error has occurred. Please try again later." with the ok button in facebook style below and in the logarithm there is nothing: 
I followed the steps in the tutorial, but I assume that something is wrong with the APP ID or hashkey generated by keytool. Here are the steps I followed:
- clone fb git.
- create an fbSDK project.
- create your own fb project and link fbSDK as a library.
- Then I made keytool cmd with openssl and entered the password “android”, as suggested by others, in stackoverflow.
- I went to developer.facebook.com and created a new application.
- In "Change settings-> Mobile devices and devices" I put my hash in the provided field.
- In "Edit Settings-> Mobile Devices and Devices" I selected "Native Application" as "Application Type"
- In the application, I copy and paste the SSO example code.
- I changed "YOUR_APP_ID" in the constructor of Facebook () to the APP identifier specified on developers.facebokk.com for my new application.
- I launched the application on my phone.
I don’t know why there is nothing in logcat, but when I install it, the console always, without fail, says: ActivityManager: Warning: Activity not started, its current task has been brought to the front
And I can not find the logcat link for my application or the error I received from facebook sdk which was: Facebook-ProxyAuth(4828): Failed to read calling package signature.
I have been doing this for several hours, and any help would be greatly appreciated. I can’t believe that the facebook SDK and help are so sketchy for Android, facebook should be ashamed of itself.
Thanks,
Infinitifizz
android facebook facebook-android-sdk
Infiniti fizz
source share