PHP - Upload a web hosted photo to facebook album via Graph API

后端 未结 3 1349
滥情空心
滥情空心 2020-12-10 21:39

I\'m trying to upload www hosted (e.g. http://www.google.se/intl/en_com/images/srpr/logo1w.png) files to a facebook album.

Creating an album works just fine, but I d

3条回答
  •  半阙折子戏
    2020-12-10 22:05

    I'm guessing CURL uploads perhaps only can manage locally stored files and not web hosted ones.

    No, that’s not the case.

    But you need to give the full, publicly reachable HTTP URL to the image, without an @ in front – and you have to use the parameter name url for this value.

    https://developers.facebook.com/docs/reference/api/photo/:

    You can also publish a photo by providing a url param with the photo's URL.

提交回复
热议问题