Is it possible to upload a remote picture to Facebook using the Facebook PHP Library??
Instead of using
$facebook->setFileUploadSupport(true);
$args = array('message' => 'My Caption');
$args['image'] = '@' . realpath($file);
$data = $facebook->api('/me/photos', 'post', $args);
Instead of a realpath($file) I would like to use a remote path to an image for example:
http://myserver.com/image.jpg
I tried to replace the realpath($file) with a http link but I got the following error:
Uncaught CurlException: 26: couldn't open file "http://mydomain.com/fb_images/EwrTsUqEuG.jpg"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…