Horror Profile Facebook application source code released

Horror Profile is a Facebook application I developed a month ago.

Now it’s time to release the source code. You will find some useful tips about dynamic image creation with php.

If you are absolutely new to Facebook applications, I suggest you to read “Developing a Facebook Application for absolute beginners” posts 1, 2, 3, 4 and 5.

The idea is simple: placing the profile picture in a mirror (that is a transparent PNG image) and writing the user first name as big as I can.

Hope you will make something decent out of it…

  • Sergey

    Emanuele, do you know how make your flash applications running inline on Facebook?

  • arxanas

    I’ve been wondering how PHP image creation worked…

  • Emanuele Feronato

    you can do some decent image manipulation using GD libraries

  • Cris

    I am trying to do something similar, but i think that i have to config my php server, but i don´t know how.

    I have this error in Facebook:

    PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: URL file-access is disabled in the server configuration in E:…\index.php on line 6 PHP Warning: imagecreatefromjpeg(http://profile.ak.fbcdn.net/v22941/664/25/q878789797987978.jpg) [function.imagecreatefromjpeg]: failed to open stream: no suitable wrapper could be found in E:…\index.php on line 6 PHP Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in E:\…\index.php on line 8 PHP Warning: getimagesize(http://profile.ak.fbcdn.net/v22941/664/25/q……978.jpg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in E:\…\index.php on line 8 PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in E:\…\index.php on line 18 PHP Warning: imagejpeg() [function.imagejpeg]: Unable to open ‘temp/100000378738508.jpg’ for writing: Permission denied in E:\…\index.php on line 42 PHP Warning: imagedestroy(): supplied argument is not a valid Image resource in E:\…\index.php on line 45

  • Do you know to suggest invites once the my image is published?.I mean one thing that some apps do, when you publish the thing they bring you to alist of friends and you chose many of them to invite.

  • here it is my 1st FB app inspired in your Horror Profile application.

    Be free to feedback it.

    http://apps.facebook.com/xmasprofilepic/

    • mike

      If you would like to sell your script/code (xmasprofilepic) please contact me. Thanks.

  • Popoy

    Hi Ze Ferreira,

    Nice app! it is possible to see the source code for it? :-) especially embedding of Google Adsense code.

  • Hi Popoy,

    to embedding adsense is simple and you have it her in the code of horror profile line 125 is one iframe and in the ad.html is the code of the adsense, easy. all the code is similar to horror profile with some variations.

  • how to change the MIRROR.PNG

  • but PUBLISH is NOT WORKING how to fix it

  • Eric

    Hi,
    Could u possibly create a flash tutorial almost similar to Horror Profile??
    The problem i faced is tat i do not know how to show facebook profile image and name in Flash.
    The method i using is FBML, PHP and AS3.
    THankalot if u have the time to create the tutorial.

  • PUBLISH is NOT WORKING how to fix it

  • Jack

    Fatal error: Call to undefined method Facebook::require_login() in /home/a5358356/public_html/horrorprofile/index.php on line 87

    How to solve?

  • Pingback: marciorosa.org » Horror Profile Facebook application source code released - Complete listing Tools and resorces for the ultimate web developer()

  • Is it still sound advice to suggest reading the “Developing a Facebook Application for absolute beginners” posts?

    I am afraid that I am very suspicious because several attempts to get the simplest thing done in my own FB app have failed so far. I mean, you would delete the article when it becomes invalid, right? Or add a comment that what you are writing about is not valid any longer?

    My impression is that several developers have shared their Facebook related findings time and time again in the last three years. But trying them today has not worked for me in even one instance. Maybe it is because the articles contents I have read were true at the point of writing, but are showing techniques which today are invalid…

    Thanks for sharing!

  • renan

    dont work for me all times tell me errors…..

    please post correct code

  • mike

    It is great app but I’m geting error:
    Fatal error: Call to undefined method Facebook::require_login() in /public_html/horrorprofile/index.php on line 87
    Can someone help me with this?
    Thanks,
    Mike

  • mike

    I’m interested in buying a working version of this script. Please contact me. Thanks.

  • Danny

    I have wondered how images were created server-side since the beginning of time, great tutorial.

  • Check my blog for more about application making of facebook.
    Your source code have error :)

  • Mohsin

    Parse error: syntax error, unexpected T_DNUMBER, expecting T_VARIABLE or ‘$’ in /home/mohsinhayat/app/www/index.php on line 80
    all the time i write facebook.php .. it fails.. whats the problem

  • i am new to fb plz tell me thet
    imagejpeg($im,”temp/”.$id.”.jpg”,80);
    does this line save the file in server