Skip to content

Commit

Permalink
fix: Fixed upload image to facebook
Browse files Browse the repository at this point in the history
  • Loading branch information
DrAliRagab committed Jan 12, 2023
1 parent 7ea6e57 commit 6b27a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Providers/Facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ public function attachMedia(int $mediaId): self
*/
public function attachMedias(array $mediaIds): self
{
foreach ($mediaIds as $k => $mediaId) {
$this->postData['attached_media'][$k] = '{"media_fbid":"' . $mediaId . '"}';
foreach ($mediaIds as $mediaId) {
$this->attachMedia($mediaId);
}

return $this;
Expand Down

0 comments on commit 6b27a26

Please sign in to comment.