I want to make users can share my app on their timeline but with this code, it posted nothing. This is my code.
local function shareListener( event ) local function listener( event ) if "session" == event.type then local msg = { message = "Test FB message", link = "https://www.google.com", picture = "https://img1.etsystatic.com/048/0/9393489/il\_fullxfull.667456823\_c6bs.jpg" } facebook.request("me/feed","POST",msg) elseif "request" == event.type then elseif "dialog" == event.type then end end if appId then facebook.login(appId,listener,{"publish\_actions"}) else print("Please enter app\_id") end end
I’ve already looked at the sample code already but no idea why this doesn’t work.