I am new to facebook sso, i have integrated the SSO into my application using phonegap, this works fine in android emulator, at the same time when i do this application on device, am facing the error.. shows that invalid_token , but the same thing is working in emulator.
Even i have created the keystore and mapped with facebook apps and secret id...
Still the problem is not getting resolved...
I got some information that, the facebook itself having problem in android SSO, is this problem still remains.
Thanks in advance.
Related
I am unable to log into the facebook SDK if the Facebook app is installed on my phone.
I succeed in logging in if I disable the Facebook app through settings. The SDK then opens a webview and it works perfectly. Unfortunately, I'm not getting any logs, so I don't have much more information than this.
If anyone has an idea of what could be happening, it would be greatly appreciated. Note that I do succeed in logging in if the app is not installed, so I don't think it's a configuration problem.
If login success in webview and not working in native installed Facebook app
So problem with your HashKeys not match with Facebook app.
The error occurs because of invalid hash key.
Generate key and change it
We need to share some information on user's profile page in Facebook using Phonegap.
To do that, we are trying with the Phonegap facebook plugin. As the phonegap app is still in development, we have created an app in Facebook as we understand that an app id is needed. We created the app and tested, but we are getting this status:
{"status":"unknown"}
with this error message:
No active session
Of course I have added the Android configuration to test in Facebook, with the Google Play Package Name and class, the hash, and tested enabling and disabling the sso. Nothing worked so far.
Any ideas?
Thanks
I had implemented Facebook Single Sign On in my app. Then I discovered it did not work if the user already had the fb app installed on their phone. I resolved this by generating a key hash for facebook, everything worked again. Since then I upgraded my Corona account from trial to the pro version. Now my facebook is not working again. I am still using the Android Debug key when building the apk file, and I have tried the original Hash Key which I had and made another one, but I can't get it to work. Any solutions?
Hy, we had the same.
Steps : Make a tutorial facebook login example with corona.
Try, thats will work with installed facebook app.
After implement facebook login into your app like in example.
That was the resolution for us.
But i cant say nothing exact, i got that app by another developer for some update/bugfixes.
For some reason the reason unknown to me, my Facebook Hash Key changed. I ran "adb logcat" when using my app on the device. In the logcat Facebook will tell you what Hash Key was expected. Copy/paste this into your Facebook Developer page and it works.
I am new to facebook sso, i have integrated the SSO into my application, this works fine in android emulator, at the same time when i do this application on device, am facing the error.. shows that invalid_token , but the same thing is working in emulator. i really don't know where the mistake is.
Even i have created the keystore and mapped with facebook apps and secret id...
Still the problem is not getting resolved...
please guide me to solve this particular issue.
Thanks in advance.
There are some problems with the SSO, the errors that are caused vary, but are probably all connected to the problem facebook is having.
It has been acknowldged by facebook as you can is in the Platform Status page.
It works in the emulator since you probably don't have the android facebook application installed on the emulator, because of that the SSO process is not the one which is used but the auth process that ships with the fb android sdk.
If the fb application is installed then the SSO kicks in and then that bug gets in the way.
There's no way to solve this for now (as far as I'm aware), the only thing is to "not using the SSO" even if it's available.
Other than that it's just waiting for facebook to solve the problem (though it has been like this for about a week or so already).
I have created an Android application that uses Facebook SDK to make wall posts. It works fine on devices that don't have the native Facebook App installed, but when it is, it throws an Invalid Key error.
I have checked all the settings & keys from my facebook application and my device code twice and all is setup right. What do I need to do to resolve this issue?
You received this error because of wrong hash calculated on your app. During application execution calculated hash value is send to facebook. If value is different from value you set in facebook developer profile - problem. If you cannot calculate correctly - read it from error message and put it to facebook developer profile. I made the same.
This is the problem because of the hash key. You ca find out the hash key of your app from this link
Facebook Integration in Android Application
and can update it in facebook app.