I am using the latest facebook sdk for unity (Package 4.3.6) for my Unity project. Whenever I try to login, this is what I get in the verbose from the LogCat.
12-09 22:54:05.911: V/FBUnitySDK(19876): sending to Unity OnLoginComplete({"cancelled":true})
And when I tried to deep dive in the logcat, these are the errors I am got.
12-09 22:53:52.298: E/fb4a(:):VaultDeviceSetup(19890): com.facebook.http.protocol.ApiException: Error validating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons. 12-09 22:53:52.298: E/fb4a(:):VaultDeviceSetup(19890): at com.facebook.http.protocol.ApiResponseChecker.b(ApiResponseChecker.java:103) 12-09 22:53:52.298: E/fb4a(:):VaultDeviceSetup(19890): at com.facebook.http.protocol.ApiResponseChecker.a(ApiResponseChecker.java:136) 12-09 22:53:52.298: E/fb4a(:):VaultDeviceSetup(19890): at com.facebook.http.protocol.StringResponseHandler.a(StringResponseHandler.java:31) 12-09 22:53:52.298: E/fb4a(:):VaultDeviceSetup(19890): at com.facebook.http.protocol.ApiResponseHandler.b(ApiResponseHandler.java:89)
Also facebook settings wasn't able to find my debug.keystore and it was showing me an warming of missing debug.keystore. I already had the debug.keystore file in the .android folder but It was still not detecting it. So i put my keyhash directly into the FacebookAndroidUtil.cs file like this.
private static string debugKeyHash="MY_KEY_HASH";
And I put the same key hash in my facebook app setting too. So I am not sure what is causing the login issue. Whether it is a key hash issue or an access token issue as shown in the logs. I am stuck at it since 2 days. :(