Text and Link sharing by share_open_graph API

354 Views Asked by At

I am getting issue with FB share_open_graph API. I have some text on a page and have one button to share that text and page URL (http://www.example.com?article_id=123).

Clicking share button text and link get share on Facebook users wall. But if user click the post from Facebook wall then link is got update with new parameters "fb_action_ids and fb_action_types".
Updated URL: http://www.example.com?article_id=123&fb_action_ids=422174444504370&fb_action_types=og.shares

Now if user wants to share again those text and page link FB share_open_graph API throws errors
enter image description here


FB.ui({
method: 'share_open_graph',
action_type: 'og.shares',
action_properties: JSON.stringify({
    object : {
        'og:url': url, // your url to share
        'og:title': title,
        'og:description': desc
    }
})
0

There are 0 best solutions below