我想自动为我网站的订阅者生成活动。这工作正常,但我无法粘贴事件的个人资料图片
创建活动(正常工作):
$access_token = 'app_access_token';
$url = "https://graph.facebook.com/app_id/events";
$postdata = "access_token=$access_token&name=$name&start_time=$start_time&end_time=$end_time&description=$description&privacy=$privacy&location=$location&picture=$picture_source";
$event_code = curl_sending_newsfeed_facebook($url, $postdata);
用于粘贴图片
$picture_source = "pic_source.jpg";
$url = "https://graph.facebook.com/event_id/picture?source=$picture_source&access_token=$access_token";
$postdata = "";
$pic_code = curl_sending_newsfeed_facebook($url, $postdata);