0

我正在尝试使用cURL以下命令将一些照片发布到已创建的相册中:

 curl -F 'access_token=<>' \
    -F 'batch=[ \
        {"method":"POST","relative_url":"/album_id/photos","url":"<photo_url>"}, \
        {"method":"POST","relative_url":"/album_id/photos","url":"<photo_url>"}]' \
        https://graph.facebook.com

我得到的错误是(#324) Requires upload file. 甚至可以将批量请求中的照片发布到相册,如果可以,正确的方法是什么cURL?谢谢!

编辑:感谢CBroe的正确命令是:

curl -F 'access_token=<>' \
     -F 'batch=[ \
         {"method":"POST","relative_url":"/album_id/photos","body":"url=<photo_url>"}, \
         {"method":"POST","relative_url":"/album_id/photos","body":"url=<photo_url>"}]' \
         https://graph.facebook.com
4

0 回答 0