mercredi 28 février 2018

Share on Facebook using dynamic meta tags not able to post to page or group

To share a page I use.

To share a page with dynamic tags, I used:

function shareOverrideOGMeta(overrideLink, overrideTitle, overrideDescription, overrideImage) {
FB.ui({
        method: 'share',
        href: window.location,
        action_properties: JSON.stringify({
            object: {
                'og:url': overrideLink,
                'og:title': overrideTitle,
                'og:description': overrideDescription,
                'og:image': overrideImage
            }
        })
    },
    function (response) {
        // Action after response
    });

}

But not able to post to specific page or group using this.

What change should be done to get that?




Aucun commentaire:

Enregistrer un commentaire