I am having strange issue that when i upload photos with API to pages have no reach but the post has reach when i post photo status with Facebook dashboard. If someone have the same issue let me know how to fix it. Below is my code to post photo status with PHP sdk. Thanks in advance.
I am having strange issue that when i upload photos with API to pages have no reach but the post has reach when i post photo status with Facebook dashboard. If someone have the same issue let me know how to fix it. Below is my code to post photo status with PHP sdk. Thanks in advance.
$data = [ 'caption' => $message, 'source' => $fb->fileToUpload($file) ];
$access_token = $page->access_token;
$response = $fb->post("/" . $pageid . "/photos", $data, $access_token, null, 'v2.10');