Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Facebook Share Dialog in Corona - is it possible?
Started by jondbm Sep 07 2014 08:01 AM

15 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

jondbm

[GLOBAL: userInfoPane.html]
jondbm
  • Observer

  • 9 posts
  • Enterprise

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?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,201 posts
  • Enterprise

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


[TOPIC: post.html]
#3

coronaent

[GLOBAL: userInfoPane.html]
coronaent
  • Enthusiast

  • 61 posts
  • Corona SDK

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.



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,201 posts
  • Enterprise

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



[TOPIC: post.html]
#5

marksumarksu

[GLOBAL: userInfoPane.html]
marksumarksu
  • Enthusiast

  • 43 posts
  • Enterprise

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.



[TOPIC: post.html]
#6

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,201 posts
  • Enterprise

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

 

Thanks

Rob



[TOPIC: post.html]
#7

hiccastudios

[GLOBAL: userInfoPane.html]
hiccastudios
  • Observer

  • 29 posts
  • Corona SDK

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

because facebook require us to share with dialog.

 

thanks



[TOPIC: post.html]
#8

jandjstudiosllc

[GLOBAL: userInfoPane.html]
jandjstudiosllc
  • Enthusiast

  • 56 posts
  • Corona SDK

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



[TOPIC: post.html]
#9

Vince_

[GLOBAL: userInfoPane.html]
Vince_
  • Contributor

  • 305 posts
  • Enterprise

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.



[TOPIC: post.html]
#10

Gerard J.

[GLOBAL: userInfoPane.html]
Gerard J.
  • Observer

  • 20 posts
  • Corona SDK

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.



[TOPIC: post.html]
#11

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,201 posts
  • Enterprise

Has someone filed a bug report for this?



[TOPIC: post.html]
#12

Vince_

[GLOBAL: userInfoPane.html]
Vince_
  • Contributor

  • 305 posts
  • Enterprise

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?



[TOPIC: post.html]
#13

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

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



[TOPIC: post.html]
#14

Vince_

[GLOBAL: userInfoPane.html]
Vince_
  • Contributor

  • 305 posts
  • Enterprise

Thanks Brent!



[TOPIC: post.html]
#15

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,201 posts
  • Enterprise

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



[TOPIC: post.html]
#16

Vince_

[GLOBAL: userInfoPane.html]
Vince_
  • Contributor

  • 305 posts
  • Enterprise

Just thought I would provide an update. I updated Corona to the latest public build, 2014.2511, and so far have not been able to reproduce the bug on my Android device. Both with the native FB app installed and without. I will keep testing and file a bug report if I can reproduce it.




[topic_controls]
[/topic_controls]