fb.ui share_open_graph vs share

1.3k Views Asked by At

A week ago the picture argument was killed by facebook and since than I am trying to bring back the old behavior in my website.

With

                FB.ui({
                method: 'share_open_graph',
                action_type: 'og.shares',
                action_properties: JSON.stringify({
                    object: { 
                        'og:url': data.href,
                        'og:title': data.title,
                        'og:description': data.description,
                        'og:image': data.picture
                    }
                })
            },

I can have an image but this does not allow users to share the link on facebook pages they manage, only on their wall.

With FB.ui({ app_id: FacebookAppId, method: 'share', href: data.href, picture: data.picture, title: data.title, description: data.description, caption: 'WriteCraft' },

The link is shared but since "picture" is deprecated there is no image at all.

Is there a solution to the issue?

1

There are 1 best solutions below

0
Ramya On

To post image on fb , change method to feed from share. it may works.

FB.ui({
                method: 'feed', 
                display: 'popup',
                picture: data.picture,
               }),