Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Problems to implement - facebook.showDialog (yes i know, another one...)
Started by sign.in Jul 04 2014 01:12 AM

11 replies to this topic
facebook

Best Answer sign.in , 05 July 2014 - 12:47 AM

Ok now i really need a feedback from Corona staff.

 

Can they confirm us what is being called when we are using facebook.showDialog("feed"

 

It seems that it is the method FBWebDialogspresentFeedDialogModallyWithSession 

 

And the problem is with this method it seems that it's not possible to share a link or a picture, at least i get an error when i try to add the link or picture parameter. And i got the pb with the native sdk. Sure when i call the     [FBDialogs presentShareDialogWithLink...

i don't have problems. But i can't switch to what is working on Corona.

 

It's  written in the doc ref that this way of sharing does not require any specific permissions. So i guess the problem does not come from my app config or is not permission related. (Plus i can share through the graph api)

 

Any further request to the facebook side did not get me anything for now. I start wondering if i am the only one having the issue. 

 

Does not got the problem with a new app.

So it does come from my app. But i have no clue what it is.

 

It came from a wrong app configuration, but it's tricky.

 

In Advance tab:

 

Stream post URL security

Links in stream posts must go to app's Canvas or Website URL.

 

Security was On.

The app was created long time ago, and the properties was on. Which was not when the new app for test i created.

 

So it does not prevent the link to be shared i guess, but only the links that were not link to the app.

 

Anyway so i can confirm, the facebook.showDialog is working fine. (on iOS still need to confirm it on android)

 

Android is ok as well.

 

Just wonder why corona does not call the new share dialog.

[FBDialogs presentShareDialogWithLink...

[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

sign.in

[GLOBAL: userInfoPane.html]
sign.in
  • Enthusiast

  • 58 posts
  • Enterprise

Hi everyone.

 

Like said before we are working on the social media stuff for our apps.

 

I investigate lot of points and i think i will post a summary of all what we have investigated including (google+,twitter,facebook)

 

But for now we have a pb with the most basic sharing.

 

We want to enable the sharing of facebook without the needs to request extended permission. (We managed to make that work already). We would like to rely on the facebook share dialog.

 

Right now we have a problem that we can reproduce with the facebook template.

 

The call to the code below is not working.

facebook.showDialog( "feed", {
				--name = "Test name",
				--description = "Example description.",
				link = "http://www.coronasdk.com/"

			}) 

 The popup appears, but with an error message.

for info, the showDialog with apprequests is working fine.

facebook.showDialog( "apprequests", {
				message = "Example message."
			})

The corona build i am using is 2014.2325.

Pbs involved iOS and Android.

 

We managed to make work a sharing of screenshot through the graph api with extended permissions publish_actions, so i can guess that the pb does not come from our app setup.

 

 

I check the forum in details, and i see people troubles with that as well. But i see some posts where the issues are still open not sure if they were closed or if the posters did not come back.

 

Is there anything obvious that i missed?

 

Thanks for your time,

 

[edit]

would really appreciate if some people confirm me they managed to make it work recently. 

 

Also the problem start to become critical for us, for iOS i have the way to share using native.showPopup  but on Android right now i have nothing except using the api with extended permissions.

 

Basically i would like confirmation to know if whether facebook.showDialog is working on android or not.

 

[edit2]

any suggestions is very welcomed. (even the more obvious one)

 

Thanks again.



[TOPIC: post.html]
#2

sign.in

[GLOBAL: userInfoPane.html]
sign.in
  • Enthusiast

  • 58 posts
  • Enterprise

I am still working on the issue.

Just update the thread, if someone find my post not detailed enough or lacking info, please feedback

 

To add more detail, i am trying to make the most basic sharing with facebook. 

As i understand the facebook.showDialog used with method "feed" is going to leverage what facebook called the feedDialog.

 

https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.0

 

As it is deprecated in flavor of their new shared dialog, am i understanding correctly what facebook.showDialog is going to call from the facebook sdk? (feedDialog and not sharedDialog)

 

https://developers.facebook.com/docs/sharing/reference/share-dialog

 

 

Thks



[TOPIC: post.html]
#3

sign.in

[GLOBAL: userInfoPane.html]
sign.in
  • Enthusiast

  • 58 posts
  • Enterprise

Ok i am onto something, i implement the sharing method natively and i managed to reproduce the pb.

 

So it seems that the following parameters:

//    @"https://developers.facebook.com/ios", @"link",

 //    @"https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png", @"picture",

 

Generate an error on the app.

 

If i remove them link and picture it passed, i have my view and i can share.

 

It worked the same on corona and native implementation.

 

So i guess the key is to make it work natively first .

The problems is i thought that the link and picture parameters were legit as described here:

https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.0

 

So if someone has some more intel on that i take it. Cause all tutorials/guide/doc and ref i found mention link or picture key as example. (Even the github sample app of facebook)



[TOPIC: post.html]
#4

sign.in

[GLOBAL: userInfoPane.html]
sign.in
  • Enthusiast

  • 58 posts
  • Enterprise

Seems that i am not the only one, i recognize the problem in the stack overflow here:

http://stackoverflow.com/questions/24242531/not-able-to-post-on-facebook-using-facebook-sdk-in-ios-7



[TOPIC: post.html]
#5

sign.in

[GLOBAL: userInfoPane.html]
sign.in
  • Enthusiast

  • 58 posts
  • Enterprise

  Best Answer

Ok now i really need a feedback from Corona staff.

 

Can they confirm us what is being called when we are using facebook.showDialog("feed"

 

It seems that it is the method FBWebDialogspresentFeedDialogModallyWithSession 

 

And the problem is with this method it seems that it's not possible to share a link or a picture, at least i get an error when i try to add the link or picture parameter. And i got the pb with the native sdk. Sure when i call the     [FBDialogs presentShareDialogWithLink...

i don't have problems. But i can't switch to what is working on Corona.

 

It's  written in the doc ref that this way of sharing does not require any specific permissions. So i guess the problem does not come from my app config or is not permission related. (Plus i can share through the graph api)

 

Any further request to the facebook side did not get me anything for now. I start wondering if i am the only one having the issue. 

 

Does not got the problem with a new app.

So it does come from my app. But i have no clue what it is.

 

It came from a wrong app configuration, but it's tricky.

 

In Advance tab:

 

Stream post URL security

Links in stream posts must go to app's Canvas or Website URL.

 

Security was On.

The app was created long time ago, and the properties was on. Which was not when the new app for test i created.

 

So it does not prevent the link to be shared i guess, but only the links that were not link to the app.

 

Anyway so i can confirm, the facebook.showDialog is working fine. (on iOS still need to confirm it on android)

 

Android is ok as well.

 

Just wonder why corona does not call the new share dialog.

[FBDialogs presentShareDialogWithLink...



[TOPIC: post.html]
#6

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,263 posts
  • Enterprise

I just took the standard Facebook sample app in the CoronaSDK/SampleCode/Networking/Facebook, added my test appID to it and built it and installed it on my Google Nexus 7 and my Apple iPad 4 (running iOS 8 Beta 2)

 

I changed the build.settings to use my test app ID and changed the AppID in main.lua to match.  The first test, i ran with the information in the sample app.  This of course did not include a photo.  I modified the sample app changing the show dialog as such:

 

            facebook.showDialog( "feed", {
                name = "SuperCool Game Coming soon",
                description = "Trying to figure out how to get my game to rule the world.",
                picture = "http://omnigeekmedia.com/wp-content/uploads/2011/05/omniblaster_promo-300x300.png",
                link = "http://www.omnigeekmedia.com/"
            })

 

And it did exactly as it should on both platforms.  Note that Facebook wants the photo to be at least 200x200 in size.  You can see the results of my testing here:
 

https://www.facebook.com/beebee.miracle?fref=ts

 

 

 

I would suggest that you try the Facebook sample app.  Make sure you don't have a keyhash or bundleID issues.  Make sure you have done all the things in the Facebook developer portal that you need (set up a test user if you've not requested extra permissions yet).

 

Rob



[TOPIC: post.html]
#7

sign.in

[GLOBAL: userInfoPane.html]
sign.in
  • Enthusiast

  • 58 posts
  • Enterprise

Hi Rob,

Yes i confirmed it worked as expected in both platform.

The pbs i was meeting, i got it using the facebook sample app as well (it was coming from the "Stream post URL security" property in the dashboard of facebook app.

 

Just to confirm again, for me using facebook.showDialog () has the same effect than using FBWebDialogspresentFeedDialogModallyWithSession method from the native SDK. (android and ios)

 

What i am not sure if on Corona there is a way to leverage the equivalent of

=> [FBDialogs presentShareDialogWithLink

 

Thanks.



[TOPIC: post.html]
#8

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,263 posts
  • Enterprise

Given that it works and how busy the engineers are, how important is this?

 

Rob



[TOPIC: post.html]
#9

sign.in

[GLOBAL: userInfoPane.html]
sign.in
  • Enthusiast

  • 58 posts
  • Enterprise

in fact both don't leverage the same thing.

The FBWebDialogspresentFeedDialogModallyWithSession is going to present the web based view.

 

The other one [FBDialogs presentShareDialogWithLink is going to leverage the last way to share recommended by Facebook as i understand it.

 

And both don't allow the same flexibility in the customization i guess.



[TOPIC: post.html]
#10

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,263 posts
  • Enterprise

Have you tried calling "share" instead of "feed"?



[TOPIC: post.html]
#11

sign.in

[GLOBAL: userInfoPane.html]
sign.in
  • Enthusiast

  • 58 posts
  • Enterprise

Hi, yes only on android though, but it does not display anything.

 

And to come back to the previous point, i think it is important as the social plugin is not working on android, it's not easy to share a screenshot picture on facebook without requesting extra permissions. 

 

Right now what we are doing:

 - make screenshots of the app

 - upload  to our server

 - share a link/picture with the url of the file uploaded

 

And even this solution does not give a correct behavior, as facebook crop the picture in the final result on the user wall. (Even though on the sharing pop-up everything is great)

 

On iOS using the native sharing, we can upload local picture and they are properly rendered as we would expect them on facebook.

 

On Android we clearly have a downgraded feature.



[TOPIC: post.html]
#12

croftware_dev

[GLOBAL: userInfoPane.html]
croftware_dev
  • Observer

  • 2 posts
  • Corona SDK

The "Feed Dialog" seems to be "outdated" as mentioned on the facebook dev pages. Devs should use "Share Dialog".

 

https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.1

 

Any information on how or when this will be implemented?

 

Have you tried calling "share" instead of "feed"?

 

in corona?




[topic_controls]
[/topic_controls]