Android / Facebook ShareDialog?

-----SOLVED: see 3rd post below-----

For the love of god… been at it since 530am, its now 230pm… Im not a newbie…

I have ran every example code found on the entire internet, including the corona example codes.

I have my proper AppID, i have the proper hashtag setup, and even the notorious secret code. I have multiple test apps setup.  apparently nothing anywhere talks about turning on PUBLIC mode , nor does anything anywhere talk about a email address to ALLOW (turning on Public mode). And my Facebook developer account shows green lights on all my test apps saying there ready for use… 

—>Any who…

i am unable to write any code that will allow me to share  games high-score using text only. to clarify, i get nothing, no intereaction. and i was getting api errors on log-cat, but once i figured out about setting up a email, then turning on public, that went away and now there are no log-cat / Facebook posts anymore, just goes right over the lines of code with nothing happening…

no point in showing my code, as i have 5 different downloaded example codes all different and none of them work. I don’t believe Android and Facebook are working together… UNLESS there is something not mentioned on any website thats a secret to make it work…

my Sunday-day off is half way over and i feel like i wasted my day. 

FYI: i ONLY care about android…  (i know IOS works out of the box with little todo, but i need android).

sorry for my all over the place post, just soo frustrated.  Had hoped to made it over this hurdle a long time ago…

any help is appreciated…

Chuck  

-----SOLVED: see MY 3rd post below-----

Well after 12hours it seems this is not possible.

why we have documentation that tells us how to do this, and examples showing how to do this, and videos showing us how to do this, but with Facebook not allowing it unless your under IOS only, and NOT ONE BIG BANNER anywhere saying this is crazy.

I spent 12 hrs on my 1 day off trying to do something, that only after seeing tiny little posts here and there saying Facebook doesn’t allow us to make text-posts on Facebook like (games that can post high-scores on your FB page and such).

I wish I could at least go back in time to when I woke up this morning, so I could had spent my day more wisely.

Its no ones fault… Lesson learned. for now on, when Im ready to tackle something new, Im sending a post to this forum a week in advance asking for links to the info I need to learn it, so someone can say it can’t be done.

Chuck

You might be interested in this thread about Facebook sharing on Android via native.showPopup() as an alternative, perhaps putting the high score in an image generated on the fly.

Android Facebook sharing is broken on Corona. Rob posted on Feb 7 that “Engineering is looking into a work around.”

http://forums.coronalabs.com/topic/52755-can-corona-enable-limited-facebook-sharing-on-android-via-nativeshowpopup/

Well it would seem like this feature under android is the HOLY grail of code requirement…

Novice user such as myself spending a total of 530am till 10pm on the problem, stumbled across it…

I sent all day plugging away at trying everything i could from bites of examples found, corona examples and even android examples.

i then pulled out android studio and played around with that.

I made a mistake and actually called a piece of code directly (not thru the facebooklistener) and even then it did not work right, it did pull up the posting screen.

(yes i feel the need to explain every detail, as i did spend a Entire-Sunday not giving up on the subject)

I then setup Print logging files just to find out that the Facebooklistener NEVER gets called on logon on my side. But i also know all access to Facebook crashes without it. so I tried one last thing.

* at the top :   local Facebook = required(“Facebook”)

* make a empty facebooklistener function

in  your code (calling when ready) :

function fb_HS_post()

Facebook.login( FB_appID, facebooklistener)    --FB_appID = my id code

local fb_name="I JUST REACHED LEVEL "…mydata.score

local fb_description=“See if you can beat me!”

local fb_link="https://play.google.com/store/apps/details?id=com.CnE.Dragon_Escape"

facebook.showDialog( “feed”, { 

app_id = FB_appID , 

name = fb_name ,

description = fb_description , 

link = fb_link

})

end

**>AND BAM!!! it works : exactly at bed time, i get it working.

I creates a slightly larger and bold caption of my Score reached, it has just below that enticing someone to join and try to beat me, and it also has the small image with/link of my app.  if the app is installed it just runs it on there phone, and if not it pulls it up on google play.

it still leaves them the ability to ADD text to the post, but not change what I have pre-made.

the NAME field will wrap once for my space.  the description field will cut off the end vs wrap, so keep it short.

works everytime …

the trick was to call the login which works i assume, but does not call the function as requested once done.

so you just run the code with out a check. 

I HAVE not checked as of yet:

1.what happens if no FB app is installed.

2.older then 4.4 android OS   -->update: seems to crash on two different NONE android 4.? phones. 

      --> easy fix, check version, if below 4.1 then don’t allow Facebook HS posts. ->

3.older FB versions

-----SOLVED: see MY 3rd post below-----

Well after 12hours it seems this is not possible.

why we have documentation that tells us how to do this, and examples showing how to do this, and videos showing us how to do this, but with Facebook not allowing it unless your under IOS only, and NOT ONE BIG BANNER anywhere saying this is crazy.

I spent 12 hrs on my 1 day off trying to do something, that only after seeing tiny little posts here and there saying Facebook doesn’t allow us to make text-posts on Facebook like (games that can post high-scores on your FB page and such).

I wish I could at least go back in time to when I woke up this morning, so I could had spent my day more wisely.

Its no ones fault… Lesson learned. for now on, when Im ready to tackle something new, Im sending a post to this forum a week in advance asking for links to the info I need to learn it, so someone can say it can’t be done.

Chuck

You might be interested in this thread about Facebook sharing on Android via native.showPopup() as an alternative, perhaps putting the high score in an image generated on the fly.

Android Facebook sharing is broken on Corona. Rob posted on Feb 7 that “Engineering is looking into a work around.”

http://forums.coronalabs.com/topic/52755-can-corona-enable-limited-facebook-sharing-on-android-via-nativeshowpopup/

Well it would seem like this feature under android is the HOLY grail of code requirement…

Novice user such as myself spending a total of 530am till 10pm on the problem, stumbled across it…

I sent all day plugging away at trying everything i could from bites of examples found, corona examples and even android examples.

i then pulled out android studio and played around with that.

I made a mistake and actually called a piece of code directly (not thru the facebooklistener) and even then it did not work right, it did pull up the posting screen.

(yes i feel the need to explain every detail, as i did spend a Entire-Sunday not giving up on the subject)

I then setup Print logging files just to find out that the Facebooklistener NEVER gets called on logon on my side. But i also know all access to Facebook crashes without it. so I tried one last thing.

* at the top :   local Facebook = required(“Facebook”)

* make a empty facebooklistener function

in  your code (calling when ready) :

function fb_HS_post()

Facebook.login( FB_appID, facebooklistener)    --FB_appID = my id code

local fb_name="I JUST REACHED LEVEL "…mydata.score

local fb_description=“See if you can beat me!”

local fb_link="https://play.google.com/store/apps/details?id=com.CnE.Dragon_Escape"

facebook.showDialog( “feed”, { 

app_id = FB_appID , 

name = fb_name ,

description = fb_description , 

link = fb_link

})

end

**>AND BAM!!! it works : exactly at bed time, i get it working.

I creates a slightly larger and bold caption of my Score reached, it has just below that enticing someone to join and try to beat me, and it also has the small image with/link of my app.  if the app is installed it just runs it on there phone, and if not it pulls it up on google play.

it still leaves them the ability to ADD text to the post, but not change what I have pre-made.

the NAME field will wrap once for my space.  the description field will cut off the end vs wrap, so keep it short.

works everytime …

the trick was to call the login which works i assume, but does not call the function as requested once done.

so you just run the code with out a check. 

I HAVE not checked as of yet:

1.what happens if no FB app is installed.

2.older then 4.4 android OS   -->update: seems to crash on two different NONE android 4.? phones. 

      --> easy fix, check version, if below 4.1 then don’t allow Facebook HS posts. ->

3.older FB versions