0

i have working for facebook event creation if we set profile picture for the event which is working fine but while uploading cover image which is not working , " it throws #200 permission error" below is the code i have used from the post link Facebook PHP SDK: Upload Event Cover Photo

$cover['cover_url']  = 'http://urlofimage';
$eid = 'xxxxxxxxxxxxxxxxxxxxxx';
$facebook->setFileUploadSupport(true);
$eventUpdate = $facebook->api( "/" . $eid, 'post', $cover );

but its not worked still, can someone please help me. OR please mention if its possible or not

Community
  • 1
  • 1
shyamkarthick
  • 499
  • 1
  • 4
  • 17

1 Answers1

0

i use this code and its working fine .

 $data = array(
          "access_token"=>$fb_oauth_token,
          "cover_url" => $image_full,
         );

remember to use the accesstoken for posting etc. thanks