fb.ui share_open_graph vs share

时间:2017-08-02 07:35:56

标签: javascript facebook facebook-graph-api fb.ui

一周前,图片论证被Facebook杀死了,因为我试图在我的网站上恢复旧的行为。

使用

                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
                    }
                })
            },

我可以拥有图片,但这不允许用户在他们管理的Facebook页面上共享链接,只能在他们的墙上。

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

链接已共享但由于“图片”已弃用,因此根本没有图片。

这个问题有解决方案吗?

1 个答案:

答案 0 :(得分:0)

要在fb上发布图片,请将方法更改为从共享供稿。它可能有效。

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