I have problem with Facebook ui share dialog (visit https://developers.facebook.com/docs/sharing/reference/share-dialog).
I'm using this code for share a page (where is setting the correct og metatags) with this Javascript Code:
FB.ui({
method: 'share',
href: '{{ user_share_path }}'
}, function(response){
if (response && !response.error_code) {
alert('Thank you');
} else {
alert('Ops! Something goes wrong');
}
});
When the user shares link with the Javascript Facebook code the result in user wall is a very poor content element with just the title. If the user copy manually the link "user_share_path" to their wall everything is fine and every og metatag in the page is showed in post. I've also tried to use share_open_graph method but I had the same effects.
Here there is a screenshot with the two post, once with JS the other manually posted:
Any idea why? Thanks