Search code examples
phphtmlfacebookapplication-server

Pop Out an image for a facebook application


i have a facebook application framework that just renders an image from a web server . i use the img src tag to render the image .

the image gets displayed in a small rectangular region of the facebook screen . i would like the image to pop-out to cover the users window screen . so that its the only image he views as of that moment . How can i do that ? do i need to use html tags . which ones do you suggest ?


Solution

  • You can use Colorbox.

    $(document).ready(init)
    {
        var options = {};
        options.href = "http://url-to-your-image.com";
        options.width = "100%";
        options.height = "100%";
    
        $.colorbox( options ); 
    }