如何通过Facebook API发布多张照片的状态? [英] How to Publish a status with multiple photos by Facebook API?

查看:102
本文介绍了如何通过Facebook API发布多张照片的状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Facebook Graph API有问题。有没有办法使用Graph API(Javascript SDK)附加多张照片?



随着iOS Facebook应用程序可以发布多张照片的状态



然而,在浏览互联网上的文档后,我无法找到它的工作原理。有没有人有想法? 这是一个使用Facebook API生成的状态屏幕截图

解决方案

这可能是一个解决方案:


  1. 创建只要发一封邮件即可获取其ID

  2. 使用 {已发布:false}上传所有照片他们的
    ID

  3. 使用 {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:

  1. Create a post with just a message, get its ID
  2. Upload all your photos with { "published" : "false" }, get their IDs
  3. Update each photo with { "target_post" : "<yourPostID>", "published" : "true" }

这篇关于如何通过Facebook API发布多张照片的状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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