Facebook Integration

Ok so it’s been a while since I last did facebook integration.  They’ve changed the dashboard on facebook however I seem to have managed my way around it but have an odd problem.

When I call facebook.login on Android, I’m getting an error message back from facebook saying your key hash doesn’t match any of the stored key hashes.  The only trouble with this is the key hash they are telling me doesn’t match is the same as the one saved on the site.

Has something changed?  Do you have to wait longer now for the app to become active or something?  Ususally this would just work but it’s not so I’m confused.  

Everything else is OK, build.settings, app id and by the way it’s build 2108 I’m using without requiring the plugin.

The keyhash is a calculated string based on the keystore you build your app with.  You have to calculate this “hash” of your "key"store and take that output and tell Facebook what it is.

Please see:  http://coronalabs.com/blog/2013/07/30/understanding-facebook-authentication/

for more information on your keyhash. 

Rob

Very odd, built with a different keystore and it worked, reverted back to the old one and… it worked!

Something must have gotten stuck on the facebook side of things.

The keyhash is a calculated string based on the keystore you build your app with.  You have to calculate this “hash” of your "key"store and take that output and tell Facebook what it is.

Please see:  http://coronalabs.com/blog/2013/07/30/understanding-facebook-authentication/

for more information on your keyhash. 

Rob

Very odd, built with a different keystore and it worked, reverted back to the old one and… it worked!

Something must have gotten stuck on the facebook side of things.