Home Text and Link sharing by share_open_graph API
Reply: 0

Text and Link sharing by share_open_graph API

Mehndi Hasan
1#
Mehndi Hasan Published in 2018-01-12 06:39:51Z

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
    }
})
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.310508 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO