带有自定义图片的 Facebook API 帖子链接 [英] Facebook API post link with custom picture

查看:28
本文介绍了带有自定义图片的 Facebook API 帖子链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以为链接设置自定义图片和标题.现在 v2.9 是不可能的了.有没有不指定 og: 标签的解决方法.

I could set custom picture and caption for link. Now it is impossible for v2.9. Is there some kind of workaround without specifying og: tags.

使用 Facebook Graph v2.8 时,您可以发布链接并显示自定义图像,而不是og:image".这是通过将图片参数添加到钩子来完成的.

When using Facebook Graph v2.8, you could post a link and display a custom image and not the "og:image". This was done by adding the picture parameter to the hook.

https://graph.facebook.com/v2.9/me/feed?link=https%3A%2F%2Fwww.google.com%2F&picture=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtntOCGkgt98%2Fmaxresdefault.jpg&name=test&message=this%20is%20a%20test&access_token=**********

图形 API 为 2.9,根据文档,这仍然可以正常工作 Facebook API 文档

The graph API is at 2.9 and as per the documentations this is still supposed to work Facebook API doc

但是,它不断被抓取的图像覆盖.是否还有其他人遇到此问题或有解决方法.?Facebook API Explorer

However, it keeps getting overridden by the scraped image. Is anyone else experiencing this problem or have a workaround.? Facebook API Explorer

推荐答案

图片、名称、标题、缩略图、描述都设置为弃用.

picture, name, caption, thumbnail, description are all set to be deprecated.

https://developers.facebook.com/docs/apps/changelog#v2_9_90_day_deprecations

这篇关于带有自定义图片的 Facebook API 帖子链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆