Facebook Feed Dialog - Post without a link

68 views Asked by At

I am trying to use the Facebook Feed Dialog to post a plain text message. According to the docs this should be possible by simply leaving the 'link' parameter empty'

https://developers.facebook.com/docs/sharing/reference/feed-dialog

"The link attached to this post. With the Feed Dialog, people can also share plain text status updates with no content from your app; just leave the link parameter empty."

When doing this I successfully see the share dialog, but when I enter a message and click post I am receiving the following error:

Action Requires At Least One Reference: The action you're trying to publish 
is invalid because it does not specify any reference objects. At least one 
of the following properties must be specified: object.

This is my code, if add a link, it works as expected.

FB.init({appId: APP_ID, status: true, cookie: true});

FB.ui({
    method: 'feed',
    title: "",
    link: "",
    caption: "",
    description: "",
    image: ""
}, function(response){});

Does anyone know how to successfully post a plain text message from the feed dialog?

0

There are 0 answers