Facebook Integration

I tried this code but got an error “The parameter ‘href’ or ‘media’ is required.” I am using adb logcat to my phone but got no error logs.

the function fb is triggered by a button.  

[lua]

local shareParams = {

title = “This is the tittle”,

description=“This is the description”,

name=“This is the name”,

link = “https://i.have.a.link.here”,

}

local function fb()

local accessToken = facebook.getCurrentAccessToken()

if accessToken == nil then

facebook.login()

print(“Facebook Login - beginner lua”)

else

facebook.showDialog( “feed”, shareParams )

end

end

[/lua]

Try removing the “name” key and value pair from share pramas

Same result. Any other suggestions? And is there exceptions or donts in the links params? cause I’m putting “www.google.com” there just for testing.

Any other suggestions? I already tried what I think will work but I can’t share texts, only photos and link. And I notice on the docs on facebook that there is “Deprecated Parameters”? and they will ignore params like descriptions, name, caption. Is there no other way to share scores from my game?

Most of those entries are deprecated.  Please see: https://developers.facebook.com/docs/sharing/reference/feed-dialog

okay those parameters are deprecated. So what paramaters should I use now so I can share Scores from my game?

Anyone please give sample code so that I can share Scores from my game to facebook. Im really out of ideas. I already gone back and forth on the docus but I can’t find the right parameter.