How do I can post a multiple photos via Facebook API

前端 未结 5 1951
难免孤独
难免孤独 2020-11-29 10:26

Now I posting a single photo to wall like this:

$response = $facebook->api(\"/$group_id/photos\", \"POST\", array(
    \'access_token=\' => $access_to         


        
5条回答
  •  时光取名叫无心
    2020-11-29 11:06

    You will need to upload each photo first with published state to false, and then use the ID's of the unpublished photos to the /me/feed endpoint to schedule the photo. The schedule needs to be within the 24 hours from the time the photos are uploaded as facebook deletes all unpublished photos in 24 hours.

    Ref: https://developers.facebook.com/docs/graph-api/photo-uploads/

提交回复
热议问题