Problem with posting to Facebook

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.

why aren’t you using the “showDialog” function in the facebook plugin?

It works and doesn’t require the “publish_actions”, which save you from getting your app approved by Facebook for this permission.

Here’s ths docs for the old plugin:

https://docs.coronalabs.com/plugin/facebook/showDialog.html

and for the the new plugin (v4):

https://docs.coronalabs.com/plugin/facebook-v4/showDialog.html

Or the Social (Android) or Activity (iOS) plugins that use the OS’s sharing features?

ROb

why aren’t you using the “showDialog” function in the facebook plugin?

It works and doesn’t require the “publish_actions”, which save you from getting your app approved by Facebook for this permission.

Here’s ths docs for the old plugin:

https://docs.coronalabs.com/plugin/facebook/showDialog.html

and for the the new plugin (v4):

https://docs.coronalabs.com/plugin/facebook-v4/showDialog.html

Or the Social (Android) or Activity (iOS) plugins that use the OS’s sharing features?

ROb