Ok, I thought I had the share dialog working but i turns out I did not.
I think I have configured everything according to the instructions provided by Corona, and it works sometimes :
When I perform the facebook login a screen asks me if I want to give the app access to my public profile, I click ok ant then the app comes back for a fraction of second and then the share dialog pops up.
The dialog is titled " my name shared an article on app name"
thus far everything works as it is expected to, but then if i try to type a comment in the “say something about this…” box, as soon as I tap it I’m asked for email and password (If I try to post without writing it works perfectly), I think it’s weird, since I already granted permission to the app, but I tink “ok, maybe it is required for security reasons”. But then, it launches the internet browser and once again asks for email and password.
Then the browser stays in a white screen,nothing is shared
Next time I try to share, it works perfectly, I can share and add a comment as many times as I like.
If I don’t fill my email and pass the second time I’m asked (browser) the share dialog will either work the next time I try to use it or it won’t be shown ever again (“Loading” will quickly be shown and hidden, but no dialog).
I’m sure this is not how this is supposed to work, and no user using my app will go through the trouble of filling their credentials (when they are already logged in) not once, but twice, because: 1. they should’t have to, and 2. it is at least a little bit suspicious.
Another weird thing that’s happening to me is that if I log out of FB, log in with a different account and then try to open the share dialog, it is always shared on behalf of the first account who tried to share.
So, anybody else has experienced this? Is it a bug in Corona? Is it something wrong on facebook’s side? Have I done something stupid?
The thing is if I open the share dialog and tap post it works.
Why would adding a comment (in the space designed to add a comment) complicate things so much (like in, preventing a user from sharing my app forever )?
I appreciate if anybody can point me in the right direction.