如何通过Facebook API发布多张照片的状态? [英] How to Publish a status with multiple photos by Facebook API?
本文介绍了如何通过Facebook API发布多张照片的状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
随着iOS Facebook应用程序可以发布多张照片的状态
然而,在浏览互联网上的文档后,我无法找到它的工作原理。有没有人有想法? 这是一个使用Facebook API生成的状态屏幕截图。
解决方案
这可能是一个解决方案:
- 创建只要发一封邮件即可获取其ID
- 使用
{已发布:false}上传所有照片
他们的
ID - 使用
{target_post:< yourPostID>,
已发布更新每张照片:true }
I have a problem with Facebook Graph API. Is there any way to "attach multiple photos within a status post" using the Graph API (Javascript SDK)?
With the iOS Facebook app can post a status with multiple photos.
However, after looking through the documentation on internet I couldn't find out how it works. Does anyone have idea? This a status screenshot that I would like to generate with the Facebook API.
解决方案
This could be a solution:
- Create a post with just a message, get its ID
- Upload all your photos with
{ "published" : "false" }
, get their IDs - Update each photo with
{ "target_post" : "<yourPostID>", "published" : "true" }
这篇关于如何通过Facebook API发布多张照片的状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文