I'm just working on a quiz script. Thus I want to share the results of an quiz and not the og meta data.
I know it is possible to use the old FB.ui feed action do add a custom name, caption, description and message than sharing an url. E.g.:
FB.ui({
method: 'feed',
href: url,
name: name,
caption: title,
description: des,
message: message,
picture: img,
}, function(response){});
However I think this gonna be deprecated soon?!
Is this possible with the new share api too? Or can I do this with custom stories? How? I'm looking for something like
FB.ui({
method: 'share',
href: url,
name: name,
caption: title,
description: des,
message: message,
picture: img,
}, function(response){});
But this isn't working :/ it only takes the href. Everything else is ignored and not prefilled :(
Is there any best practise or a facebook recommended way to do this?
API docs: https://developers.facebook.com/docs/sharing/reference/share-dialog
Thx. I really appreciate your help
I think that your href URL should use metadata so that Facebook could get those informations.
From Facebook developers page:
Include open graph meta tags on the page at this URL to customize the story that is shared back to Facebook.