如何使用Facebook Graph API上传事件的图片? [英] How to upload a picture for an event using the Facebook Graph API?

查看:132
本文介绍了如何使用Facebook Graph API上传事件的图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何使用Facebook Graph API向事件添加图片.我已经看到了这个问题,并尝试了对该主题进行一些修改,但没有任何成功.官方文档似乎没有提及它.

I would like to know how to add a picture to an event using the Facebook Graph API. I have seen this question and tried some variations on that theme, without any success. The official documentation doesn't seem to make any mention of it.

我正在为该特定项目使用PHP,并且查看了PHP SDK源代码,这在任何方面都无济于事.使用 https://graph.facebook.com/eventid/picture请求图片的元数据似乎无法识别出?metadata = 1& access_token ...,所以那里也没有帮助.

I'm using PHP for this particular project and I've looked at the PHP SDK source code, which is not helpful in any way. Requesting metadata for pictures using https://graph.facebook.com/eventid/picture?metadata=1&access_token... doesn't seem to be recognized, so no help there either.

有没有人遇到过有关如何执行此操作的示例或文档? (不在乎它使用的是哪种语言)

Has anyone come across some example or documentation on how to do this? (don't care about which language it is in)

推荐答案

它似乎是Graph API尚不支持的东西.官方文档中未提及它,并且尝试Graph-ify旧样式API调用似乎无效.

It appears to be something that is not yet supported by the Graph API. It is not mentioned in the official documentation, and attempts Graph-ify old style API calls do not appear to work.

关于此论坛上各种人的尝试已经进行了一些讨论: http://forum.developers.facebook.com/viewtopic.php?id= 56717

There has been some discussion on what various people have tried on this forum: http://forum.developers.facebook.com/viewtopic.php?id=56717

目前,似乎唯一的选择是使用旧的API(官方文件). Paarth的答案提供了一些其他有用的链接来开始使用.但是,由于我的问题是关于Graph API的,所以答案(目前)是:无法完成.

For now, it seems the only option is to use the old API (official documentation). Paarth's answer provides some additional useful links to get started with that. However, since my question was specifically about the Graph API, the answer (for now) is: it cannot be done.

我将更新此答案,因为对事件图片上传的支持已添加到Graph API.

I'll update this answer as support for event picture uploading is added to the Graph API.

这篇关于如何使用Facebook Graph API上传事件的图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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