Now I posting a single photo to wall like this:
$response = $facebook->api("/$group_id/photos", "POST", array(
'access_token=' => $access_token,
'message' => 'This is a test message',
'url' => 'http://d24w6bsrhbeh9d.cloudfront.net/photo/agydwb6_460s.jpg',
)
);
It works fine, but can I somehow post a multiple photos, something like this:
You can make batch requests as mentioned here: https://.com/a/11025457/1343690
But its simple to loop through your images and publish them directly.
Edit:
(regarding grouping of photos on wall)This grouping is done by facebook automatically if some photos are uploaded into the same album.
Currently you cannot create an album in a group via Graph API - it is not supported (as of now), see this bug.
But you can do this - create an album manually, then get the
album_id
by-GET /{group-id}/albums
, then use the the code withalbum_id
instead ofgroup_id
-I've tested it, see the result-