6
所以。我無法做到這一點,我找不到任何解決方案。如何通過api在facebook上將多個圖像上傳到一個帖子
這是我的代碼。
$result1 = $facebook->batchApi('***********/feed', 'POST', array(
'attached_files' => $facebook->attachFile($uploads[2]),
));
$result2 = $facebook->batchApi('*********/feed', 'POST', array(
'attached_files' => $facebook->attachFile($uploads[1]),
));
$res = $facebook->processBatch(array(
"access_token" => $user_profile['data'][0]['access_token'],
));
我正在使用facebook-batch-api。這只是批量請求的簡單包裝。 需要作出後這樣https://www.facebook.com/centrMAN/posts/587573351326832
我找到了一些建議。 https://developers.facebook.com/docs/opengraph/using-actions/#photos。 所以我需要創建用戶故事,然後我可以在單個帖子中發佈多個圖像。 – user2995220
看來,現在你可以https://developers.facebook.com/docs/graph-api/photo-uploads#publishing-a-multi-photo-story – Ionut