Upload cover photo on facebook fan page - php

I searched in graph api but couldn't find how to set cover photo on facebook fan page?
I want to set a cover photo directly like https://www.pagemodo.com/
I am using facebook-php-sdk-v4
I searched online and I found this link
it seam like it is using deprecated api.
Thanks for any help and suggestion in advance

You cannot update a Page's cover image. Read the docs at
https://developers.facebook.com/docs/graph-api/reference/page#Updating

Related

create a thumbnail for the video in vimeo by selecting frame

I need to create thumbnails for the video in vimeo in php (cakephp),
Please have a look at this
User will be selecting the particular frame by clicking on the Use this frame button.
Did anyone work on this, if so please help me..
This is not currently supported in Vimeo's API. You will have to change it on vimeo.com.
The feature will be supported in the future though, so keep an eye on the developer blog for more information.
This is now suppported in Vimeo's Api. Please take a look here. You just need to set the time and active parameters in the following request.
POST https://api.vimeo.com/videos/{video_id}/pictures

Facebook API: user allows permissions, then shares a pre-existing photo to their wall

I've been looking around trying to find a solution to my problem but no luck.
I would like to mimic the "feed" dialog which allows the user the ability to share a link on their wall.
However, I would like the user to share a pre-existing photo on their wall at full size.
If someone could help me out, that would be awesome.
Thank you!
It's possible using the object_attachment param. I'm not certain it'll come out full size though. It'll look like a link story, but the image will pop open the photo viewer lightbox.
Here's a blog post announcing it:
http://developers.facebook.com/blog/post/526/

Facebook App user photos in result photo

I am not sure if this is the right tag to ask this question.
I have see many facebook apps which generate a customized image as output of the app wherein profile pics of users and their friends are superimposed or say combined to make one single image. After that tagging is done as well.
Can anybody tell me how is it done?
I am trying to make a similar app using php
Thanks in advance
I've used Imagick for a while - really easy. Its done by making calls to libraries such as the ones listed here and in #darlinton's answer. The libraries have functions like borderImage, cropImage, resizeImage, compositeImage.
take the photos as described here: How to use Facebook graph API to retrieve fan photos uploaded to wall of fan page?
then merge them like this: http://php.net/manual/en/function.imagecopymerge.php
or using some component/framework/library you like, e.g. GD http://php.net/manual/en/ref.image.php.

Facebook photo gallery widget for my website?

Is there a widget to get all albums and photos from a facebook page and display them in a simple grid on my website?
Preferably, the widget would use PHP, JavaScript, or a combination.
I have a client who wants to display all the pictures found on their facebook business page on their website. I could manually download and upload each picture from facebook to his website, but I figured this would be a good place to use Facebook's api.
Here is a simple widget. Created it in about 3 hours so its not perfect but it works.
There is no CSS styling either so you can easily style it up.
https://github.com/zechdc/Facebook-Photo-Gallery-Widget
I'm assuming that you want the page to display images that are currently on the page, so when the photos are updated on the business page the website is also updated?
If so see this below tutorial:
http://www.codeofaninja.com/2011/06/display-facebook-photos-to-your-website.html
Looking at the reference to their Graph API it doesn't look to hard, all you need is a photo album id and you can get the photo album as a JSON object:
https://graph.facebook.com/99394368305 (Coca-Cola's wall photos)
You can try SlideshowFx plugin (http://www.oopstouch.com) proposed for Joomla and WordPress.
Initially based on Picasa, they port the plugin to Flickr and Facebook.
A lot of option available.
Check demo here: http://www.oopstouch.com
Regards,
Joël
I use this super duper quick solution. Just replace "{FACEBOOK-PAGE-ID-HERE}" with your facebook page id.
<iframe src="http://facebookgalleria.com/gallery.php?id={FACEBOOK-PAGE-ID-HERE}" scrolling="no" marginheight="0" frameborder="0" width="551" style="height: 769px;"></iframe>

Facebook audio Upload of mp4 format

Need help/idea on this.
I have to create a mp4 audio file and then have to upload it on facebook, twitter and tumblr.
I know there is no specific API for this there. But is there any other way out?
I also know i can upload files on separate server and then can provide the link. But i want it to play there only as video's in facebook.
Any ideas on this will be appreciated.
you can utilize open graph, i.e. create a web page with og:audio related meta tags, see the following doc (scroll towards the bottom):
https://developers.facebook.com/docs/opengraph/
then anytime a user/page/app likes a page, it is uploaded to their facebook
hope this helps
you can also do it from opengraph see if this link is suitable for you https://developers.facebook.com/docs/opengraph/
you can also do it by open graph protocol of facebook

Categories