Facebook Share Dialog in Corona - is it possible?

Facebook has deprecated the Feed dialog, which you can call from Corona with facebook.showDialog( “feed”…

It has been replaced with the Share dialog. In less than a year the Feed Dialog will stop working, so is there any way to get Corona to show the Share Dialog instead successfully?

I tried using showDialog(“share”… in case it has implemented already and just not documented, but the dialog closes as soon as it has opened, so I’m assuming if it does work it needs specific parameters - can anyone who has it working let me know what they are and provide an example?

We apparently support the share dialog, however some of the parameters are different than “feed”.  Try something like:

facebook.showDialog( “share”, {

     name = “Test name”,

     description = “Example description.”,

     href = “http://www.coronasdk.com/

})

And see how that works.

Rob

I tried this, the share dialog is showing, however, when I tap on the text box (area that will trigger keyboard to show), the dialog immediate ask me to login to facebook. 

I am using daily build 2432.

You do have to be logged in to Facebook with the facebook.login() call to use this and since you need write permissions its probably going to bring up a dialog box to ask for that as well the first time.

Rob

Bringing this thread back to life: I am currently also trying to get the “share” dialog to work since that is the new way Facebook wants things to work. jondbm is right - when you try to write, the dialog asks the user to log in. I must stress that this is definitely a bug, not expected behaviour - I have already lgoged in an authenticated the user in the step before - and when the user enters the credentials here in this dialog and presses ok, the dialog just becomes empty and white.

Also, please note that if the user first presses cancel, then brings the dialog up again, things seem to work again!?

Again, this is definitely a bug and something that should be looked into, since this is the new official way from Facebook.

Can you please file a bug report?  We will need an example project complete that has this issue. 

Thanks

Rob

We apparently support the share dialog, however some of the parameters are different than “feed”.  Try something like:

facebook.showDialog( “share”, {

     name = “Test name”,

     description = “Example description.”,

     href = “http://www.coronasdk.com/

})

And see how that works.

Rob

I tried this, the share dialog is showing, however, when I tap on the text box (area that will trigger keyboard to show), the dialog immediate ask me to login to facebook. 

I am using daily build 2432.

You do have to be logged in to Facebook with the facebook.login() call to use this and since you need write permissions its probably going to bring up a dialog box to ask for that as well the first time.

Rob

Bringing this thread back to life: I am currently also trying to get the “share” dialog to work since that is the new way Facebook wants things to work. jondbm is right - when you try to write, the dialog asks the user to log in. I must stress that this is definitely a bug, not expected behaviour - I have already lgoged in an authenticated the user in the step before - and when the user enters the credentials here in this dialog and presses ok, the dialog just becomes empty and white.

Also, please note that if the user first presses cancel, then brings the dialog up again, things seem to work again!?

Again, this is definitely a bug and something that should be looked into, since this is the new official way from Facebook.

Can you please file a bug report?  We will need an example project complete that has this issue. 

Thanks

Rob

Hi, did corona support images share dialog without social plugin ?

because facebook require us to share with dialog.

thanks

Did a bug report get filed on this issue?  I just ran into this myself with the last public release, 2511.

I’d like to chime in as well. I found that I encounter this bug only when the native Facebook app is installed (only tested on Android). If I uninstall the native app then I don’t see the weird behavior mentioned above.

So, have there been any improvements on this matter?

I just ran into the aforementioned issue and I don’t think I can release tthe app with such a problem (I’m sure most people DO have facebook app instaled, thus preventing them from using the share dialog in our apps), but then “Sharing on facebook” is a mandatory feature for my company, so I can’t release it without the dialog either.

Was that report filed? Can we expect to hear from this soon?

Thanks.

Has someone filed a bug report for this?

Well it seems no one else has filed a bug report so I’ll do it.

@Rob, can you please point me to where a report can be filed?

Hi @Vince_,

The bug report form is located here:

http://developer.coronalabs.com/content/bug-submission

As always, you’ll need to submit a basic test project along with the report.

Thanks,

Brent

Thanks Brent!

When you file the bug you will get an email with a Case ID #.  Please post that back to this thread as a reference.

Rob