Facebook用报价分享全尺寸图像
我希望能够在我的网站上有一个链接,即单击它,打开了一个Facebook共享对话框,其中包含图像全尺寸显示的图像以及自定义文本报价。
我尝试使用 Facebook共享对话框的两个选项实现这一结果:
- 第一个选项是使用
https://www.facebook.com/dialog/share?app_id=3xxxxxxxx334&quote=Some%20Quote&Amp;href=https%3A; %2FSOME_PAGE
,并使用og:image
在www.example.com/some_page
带有我要显示的图像- 这种方法的问题在于显示剪辑以匹配Facebook使用的纵横比(1.9:1),这与我用于图像的宽高比不同( 1.3:1)
- 第二种选择是使用
https://www.facebook.com/dialog/share?app_id=3xxxxxxxx334&ammia= [%27HTTPS%3A%2F%2F%2F%2F%2F%2F%2FSample.com%2FSample.com%2FSome_img.img.jpg%27]
与我要显示的图像的链接- 此方法在Facebook中以全尺寸显示图像,但是问题是,它不允许使用图像添加任何文本报价,任何使用
QUOTE> QUOTE
或描述
查询参数似乎被Facebook 忽略了
- 此方法在Facebook中以全尺寸显示图像,但是问题是,它不允许使用图像添加任何文本报价,任何使用
因此我的问题是否有一种方法可以结合两种方法,使图像与自定义文本报价一起显示全尺寸?
I want to be able to have a link on my website that upon clicking it opens a Facebook share dialog containing the image displayed with full size along with a custom text quote.
The 2 options that I tried with the Facebook share dialog don't achieve that result:
- The first option is to use
https://www.facebook.com/dialog/share?app_id=3xxxxxx334"e=Some%20quote&href=https%3A%2F%2Fwww.example.com%2Fsome_page
, and useog:image
tag onwww.example.com/some_page
with the image that I want to display- The problem with this approach is that the image is displayed cropped to match the aspect ratio that the Facebook uses (1.9:1) which is different than the aspect ratio that I use for the image (1.3:1)
- The second option is to use
https://www.facebook.com/dialog/share?app_id=3xxxxxx334&media=[%27https%3A%2F%2Fwww.example.com%2Fsome_img.jpg%27]
with the link of the image that I want to display- This approach displays the image in full size in Facebook, however the problem is that it doesn't allow adding any text quote with the image, any use of
quote
ordescription
query parameters seems to be ignored by Facebook
- This approach displays the image in full size in Facebook, however the problem is that it doesn't allow adding any text quote with the image, any use of
So my question is there a way to combine the 2 methods such that the image gets displayed with full size along with a custom text quote?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论