我最近从facebook更改为新服务器时出现了此错误
Fatal error: Uncaught CurlException: 26: couldn't open file "" thrown in /home/my/folder/here/src/base_facebook.php on line 805
和第805行(从804复制字符串): -
804 if ($result === false) {
805 $e = new FacebookApiException(array(
'error_code' => curl_errno($ch),
'error' => array(
'message' => curl_error($ch),
'type' => 'CurlException',
),
));
curl_close($ch);
throw $e;
}
curl_close($ch);
return $result;
我不确定代码是否需要,但这里是我文件中的代码: -
$album_details = array(
'message'=> 'Which Friend is your best friend?',
'name'=> 'Which Friend is your best friend?'
);
$create_album = $facebook->api('/me/albums', 'post', $album_details);
//Get album ID of the album you've just created
$album_uid = $create_album['id'];
//Upload a photo to album of ID...
$file='img/'.$fbid.'.jpg'; //Example image file
$data = array(array('tag_uid' => $friends, 'x' => rand() % 100, 'y' => rand() % 100 ));
$data = json_encode($data);
//, 'tags' => $data,
$photo_details = array( 'message'=> 'My Best Friend '.$friend.' . Find Out Here -> http://www.facebook.com/ <-', 'tags' => $data, 'image' => '@' . realpath($file) );
$upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details);
一切顺利,允许应用程序,然后是权限页面......但是一旦获得许可,它就会发出此错误。
请帮忙......