Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php facebook graph api:将外部URL作为图像添加到事件_Php_Facebook_Events_Facebook Graph Api - Fatal编程技术网

Php facebook graph api:将外部URL作为图像添加到事件

Php facebook graph api:将外部URL作为图像添加到事件,php,facebook,events,facebook-graph-api,Php,Facebook,Events,Facebook Graph Api,我使用以下参数通过facebook graph api创建事件 $attachment = array( 'access_token' => $token, 'name' => $event_name, 'start_time' => $event_start, 'privacy_type'

我使用以下参数通过facebook graph api创建事件

$attachment =  array(   'access_token'  => $token,
                          'name' => $event_name,
                                'start_time' => $event_start,
                                'privacy_type' => $event_privacy
 );
如何将外部URL作为图像附加到其中的事件


注意:我使用的是curl,所以我需要使用外部图像url

查看此链接,它有您想要的答案。