通过Facebook图形API发布一个大型图片的链接 [英] Posting a link via the Facebook graph API with a large picture

查看:107
本文介绍了通过Facebook图形API发布一个大型图片的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然以前的链接只能有一个小的(90x90)图片,但现在看来,您的Feed中的链接现在可以有更大的图片(例如400x208)。



如果您将具有较大og:image的链接粘贴到Facebook界面上的更新状态字段中,您可以看到这一点(例如 http://allthingsd.com/20131003/facebook-tries-to-make-家庭更加邀请的照片来自其他服务/



似乎有些第三方应用程序能够发布一个链接到您的饲料以及 - 例如,如果我发布上述链接与HootSuite图片出现在大尺寸。



但是,当我们尝试了使用图形API,我们看起来似乎没有任何东西,但小的90x90图片与链接。



使用Graph API时,有没有人知道什么字段需要被传递到/ me / feed (或/ me / links)为了得到更大的图片?似乎没有链接,标题,描述和图片是足够的 - 在这种情况下,图片仍然很小。



谢谢!

解决方案

不知道你是否已经排序了。但是我可以使用PHP和cURL在OG上发布一个大图像和链接。

  $ data ['图片'] =http://www.example.com/image.jpg; 
$ data ['link'] =http://www.example.com/;
$ data ['message'] =你的消息;
$ data ['caption'] =Caption;
$ data ['description'] =描述;我按照



显然,你的源图片需要是大。我想我用的是900x900。它没有出来那么大。但是它远远大于90x90或FB上的其他任何东西。


While it used to be the case that a link could only have a small (90x90) picture, it appears that links can now have larger pictures (e.g. 400x208) in your feed.

You can see this if you paste a link that has a large og:image into the "Update Status" field on the Facebook UI (e.g. http://allthingsd.com/20131003/facebook-tries-to-make-home-more-inviting-by-welcoming-photos-from-other-services/ )

It also seems that some 3rd party apps are able to post a link to your feed as well - For example, if I post the above link with HootSuite the picture appears in the large size.

But, when we've tried it with the graph API, we can't seem to get anything but the small 90x90 pictures with a link.

When using the Graph API, does anyone know what fields need to be passed into /me/feed (or /me/links) in order to get the bigger picture? It doesn't seem that link, title, description, and picture is enough - the picture still ends up being small in this case.

Thanks!

解决方案

Not sure if you sorted this out yet. But I was able to post a large image and link using the below with PHP and cURL over OG.

$data['picture'] = "http://www.example.com/image.jpg";
$data['link'] = "http://www.example.com/";
$data['message'] = "Your message";
$data['caption'] = "Caption";
$data['description'] = "Description";

I followed this tutorial.

Obviously your source picture needs to be large. I think I used 900x900. It didn't come out that big. But it was considerably larger than 90x90 or anything else on FB.

这篇关于通过Facebook图形API发布一个大型图片的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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