1 of 1 found this page helpful

Facebook fan box template

    Table of contents
    1. 1. Installation
    2. 2. Code
    3. 3. Example
    4. 4.  

     

    Installation

    1. Copy upper template text;

    2. Create new Template;

    3. Name it "FacebookFanbox";

    4. Select DekiScript style;

    5. Paste the text inside;

    6. Save it and you are ready.

    Code

    /***
        USAGE:
    
        FacebookFanPage(profile_id, width, height)
            Embed a Facebook fan page.
    
        PARAMETERS:
    
        profile_id : str
            Facebook fan page profile ID.
    
        width : int
            Width of the widget. Optional.
    
        height : int
            Height of the widget. Optional.
    
        fansCount : int
            How many fans to show. Optional.
    ***/
    
    var profile_id = $0 ?? $profile_id;
    var width = $1 ?? $width ?? 300;
    var height = $2 ?? $height ?? 550;
    var fansCount = $3 ?? $fansCount ?? 0;
    
    <div id="facebook-fan-box">
        <iframe 
            scrolling="no" 
            frameborder="0"
            src=("http://www.facebook.com/connect/connect.php?id="..profile_id.."&connections="..fansCount.."&stream=1")
            allowtransparency="true" 
            style=("border: none; width: "..width.."px; height: "..height.."px;")>
        </iframe>
    </div>

     

    Example

    {{ FacebookFanbox( "159681242662", "750", "550", "26" ) }}
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by