codeigniter - get file path from url in php? -
i using php sdk uploading images facebook album.for need give real path of images.incase of server can give real path of image , upload facebook working fine. here want upload images facebook album via using external image url. ie,i want upload image fb using next image url.http://i.nokia.com/r/image/view/-/2003984/highres/2/-/lumia-620-smart-shoot.jpg
$this->facebook->setfileuploadsupport(true); $photo = $this->facebook->api('/*********/photos', 'post', array( 'access_token' => $this->config->item('facebook_page_access_token'), 'source' => '@' .$imagepath, 'message' => "description text" ) );
this code uploading images fb. here how can path of image using given url in php?
you can publish photo external source using 'url' parameter.
$photo = $this->facebook->api('/*********/photos', 'post', array( 'access_token' => $this->config->item('facebook_page_access_token'), 'url' => $imagepath, 'message' => "description text" ) );
checkout below document.
https://developers.facebook.com/docs/reference/api/photo/
php codeigniter curl facebook-php-sdk filepath
No comments:
Post a Comment