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]