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.
Related
When creating a Facebook Campaign though UI (Business Manager) there's a way to set an alternative picture for a group, so for example you can set different dimensions picture to display in the stories. However when creating same campaign using API calls, looks like there's no way for doing so? I can only have one image for an Ad Creative.
Can someone point me towards a right direction? Code sample or just an explanation of what objects needs to be created in order to achieve the result?
Here's what I'm writing about when having it about image-groups whet using Facebook UI:
I would like to add image posts to a website much like Imgur.com
So especially the Image-Text-Image-Text or Text-Image-Image-Text-Image style..
If it was simply Image-Text then I would just have a database table with pictures and their respective captions but this can be any order..
How would I structure a random order of text and pictures in the database while supporting Markdown? A simple push in the right direction is probably enough!
I may be misunderstanding the question but...
If you're looking to upload images to Imgur using your own software/php script, you're going to want to use the Imgur API. You'll have to Register Your Application before you can make use of it.
I saw the docs on the Instagram developers page. http://instagram.com/developer/endpoints/
But I want to display my own photos so I will need to get an access token. After that I want to make my photos work in a Lightbox or Fancybox. I was able to make this work with all endpoints that require a client ID. Its the access token that stumps me.
Edit:
I want to use php and or jquery to create a gallery of images from my account. Can anyone out there point me in the right direction? Are there any tutorials I can use that demonstrate this from start to finish?
I've just written a tutorial to help people like you manipulate this api and generate Fancybox gallery. It even includes source files of the final product. Here is a link http://www.blueprintinteractive.com/blog/how-instagram-api-fancybox-simplified
How to change a caption of an image on Facebook in PHP via graph api?
This is the way I used to upload it:
$facebook->api_client->photos_upload($file,$aid,'some caption',$uid);
Any hints?
Thanks.
NO, Its not possible to change caption of image using API.
The Open Graph API does not allow such an option.
It is possible to upload the photo with a new caption, but it looks as if the user has to approve the addition of a photo to his album, and I'm not sure that part is automatable.
If you want further explination try reading This question.
I may be doing something wrong and should not answer as link to same question exists on the comments, but i just thought it's an answer and no one posted it.
If i shouldn't have done that, comment and i'll delete or author delete question.
Don't start voting me down =/
You can't update captions on Facebook. They're quite rigid about that. You can upload a caption, but if it includes a link, it will be "red flagged" as spammy and your app might be taken down. The way they want you to do it is provide a text area for the user to fill out, and then upload that to Facebook. Essentially, have some user-moderated flow that allows someone to add or customize the caption input.
After it's uploaded, there's absolutely no way to change it.
I'm trying to integrate the Flickr API with Jquery Gallerific. If you're familiar with Gallerific you know photos in the Gallery can have a caption. I'm trying to pull photos from a specific set from a user using flickr.photosets.getPhotos to get thumbnails. However, with this method it's not possible to get description for each thumbnail, only for the set so I'm having to run flickr.photos.getInfo for each photo in the set, which works but is pretty much useless as a page takes 10+ seconds to load. Does anyone know how to obtain flickr photos from a set with the individual description for each photo? I've looked through the API but can't seem to find anything.
Thanks in advance!
Never actually used the Flickr API but what about just loading the thumbnails initially, then using JSONP (or a custom "proxy" of sorts) to query photo information asynchronously after the page has loaded. Or, better yet, when the user actually hovers over an image.