Facebook share dialog is dismissed

666 Views Asked by At

I've got this issue in my application:

  • I've implemented a fully functional Facebook Share Dialog - works great on my testing device (I've added the dev key hash to FB platform)

  • I've generated a signed apk for release (I've added the release key hash to FB platform, too).

  • I test the release signed apk on my device (Nexus5) - works great

  • I test the release signed apk on other devices - it is dismissed a second after I show it.

Has anyone got any idea what's up with this behaviour? I cannot find a reasonable why it would do this.

Also, later, I've clear the data from the FB app on that device and it worked well. I can't tell if it will or won't work on the user's devices, and I cannot assume that the users will clear their FB app data just to make my app work, so I'm not sure exactly what should I do.

Thank you

2

There are 2 best solutions below

4
On BEST ANSWER

I figured out what the problem was. The app was still on Development mode in Facebook Dashboard. I switched to Public and it worked

2
On

there are two keyhashes to be added on the facebook dev account

  1. the debug keyhash which is generated when you run the application from eclipse
  2. the keyhash generated after apk is made.