Has Facebook released any api for facebook cover photo? I want to implement it using PHP language.
EDIT
I want to upload cover photo in facebook timeline using graph api PHP
Your cover photo is “clickable,” as is the photo in your library. So in the photo's description, you can add copy to direct users to your freebie (via your data capture tool). In funnel marketing terms, that freebie is known as a lead magnet.
You can easily do this using a free tool we love – Canva by selecting “Use Custom Dimensions”. Use these dimensions for optimal viewing on both mobile and desktop for your Facebook Cover Image. NOTE: You will want to be mindful of anything placed in the top and bottom sections for optimal desktop viewing.
For profile pictures and cover photos with your logo or text, you may get a better result by using a PNG file. Keep in mind that your Page's profile picture will be cropped to a circular shape in ads and posts, but will remain the same square shape when people visit your Page.
Select File > New. Name the file “cover-photo.” Set the width to 851 pixels, the height to 315 pixels, and resolution to 72 pixels/inch. These are the minimum dimensions for a cover photo on Facebook. This allows you to design your cover photo in Photoshop without guessing how it will appear on Facebook.
There is an api for updating the cover photo on a page
It asks for a photo id which i guess is the id of a photo from the users album.
Actually, it is not possible to change the profile picture directly via Facebook Photo Graph API as no section mention about that.
However, we can do a trick by uploading user’s photo to Facebook via the API then redirect the user to uploaded photo URL with 1 added in querystring parameter as below:
http://www.facebook.com/photo.php?pid=xyz&id=abc&makeprofile=1
“&makeprofile=1″ is the main thing here and xyz/abc will be returned by Facebook. By adding the parameter, Facebook will auto change the profile picture of the current user with the uploaded picture above.
For more info: http://4rapiddev.com/facebook-graph-api/php-change-facebook-profile-picture-with-graph-api/
You can upload photo to an album via graph api. Get the new photo id and redirect user to this url
"http://www.facebook.com/profile.php?preview_cover=" + photo_id
before that, you should inform the user that he/she will be redirected to facebook to page where they can set new cover photo (they need to confirm the change, click the save button). It's not perfect solution, and not fully covered api but it's best way out there asfaik.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With