简体   繁体   中英

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

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, eg GD http://php.net/manual/en/ref.image.php .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM