User Guide Cancel

Social enhancements

ColdFusion has introduced the support for dynamically generating Like button, Tweet button, and Comment box for social media sites. The supported widgets are:

  • Like button
  • Tweet button
  • Facebook comment box
  • Google Plus button
  • Facebook subscribe button
  • Like box
  • Activity feed
  • Follow

Examples

  1. Syntax for Facebook Like button:

    <cf_socialplugin type = "like"
    url = ""
    layout = "standard|box_count|button_count"
    showfaces = "true|false"
    verb = "like|recommend"
    colorscheme = "light|dark"
    style = ""
    width = ""
    extraoptions = ""
    >
    <cf_socialplugin type = "like" url = "" layout = "standard|box_count|button_count" showfaces = "true|false" verb = "like|recommend" colorscheme = "light|dark" style = "" width = "" extraoptions = "" >
    <cf_socialplugin type = "like"
    url = ""
    layout = "standard|box_count|button_count"
    showfaces = "true|false"
    verb = "like|recommend"
    colorscheme = "light|dark"
    style = ""
    width = ""
    extraoptions = ""
    >
  2.  Syntax for Facebook Likebox button:

    <cf_socialplugin type = "likebox"
    url = "This refers to a Facebook Page."
    showfaces = "true|false"
    showstream = "true|false"
    showheader = "true|false"
    colorscheme = "light|dark"
    style = ""
    height = ""
    width = ""
    extraoptions = ""
    >
    <cf_socialplugin type = "likebox" url = "This refers to a Facebook Page." showfaces = "true|false" showstream = "true|false" showheader = "true|false" colorscheme = "light|dark" style = "" height = "" width = "" extraoptions = "" >
    <cf_socialplugin type = "likebox"
    url = "This refers to a Facebook Page."
    showfaces = "true|false"
    showstream = "true|false"
    showheader = "true|false"
    colorscheme = "light|dark"
    style = ""
    height = ""
    width = ""
    extraoptions = ""
    >
  3. Syntax for Activity feed for a Facebook application:

    <cf_socialplugin type = "activityfeed"
    appid= "facebook_app_id"
    width = ""
    height = ""
    colorscheme = "light|dark"
    showheader = "true|false"
    action = ""
    linktarget = "_blank|_top|_parent"
    recommendations = "true|false"
    style = ""
    extraoptions = ""
    >
    <cf_socialplugin type = "activityfeed" appid= "facebook_app_id" width = "" height = "" colorscheme = "light|dark" showheader = "true|false" action = "" linktarget = "_blank|_top|_parent" recommendations = "true|false" style = "" extraoptions = "" >
    <cf_socialplugin type = "activityfeed" 
    appid= "facebook_app_id"
    width = ""
    height = ""
    colorscheme = "light|dark"
    showheader = "true|false"
    action = ""
    linktarget = "_blank|_top|_parent"
    recommendations = "true|false"
    style = ""
    extraoptions = ""
    >
  4. Syntax for a Twitter Follow button:

    <cf_socialplugin type = "follow"
    showcount= "true|false"
    buttonsize= "medium|large"
    language = "en|fr|.........."
    showusername = "true|false"
    username = ""
    style = ""
    extraoptions = ""
    >
    <cf_socialplugin type = "follow" showcount= "true|false" buttonsize= "medium|large" language = "en|fr|.........." showusername = "true|false" username = "" style = "" extraoptions = "" >
    <cf_socialplugin type = "follow"
    showcount= "true|false"
    buttonsize= "medium|large"
    language = "en|fr|.........."
    showusername = "true|false"
    username = ""
    style = "" 
    extraoptions = ""
    >
  5. Syntax for a Google Plus button:

    <cf_socialplugin type = "plusone"
    url = "url to plus one"
    buttonsize= "small|medium|large|tall"
    language = "en|fr|.........."
    width = ""
    annotation = "none|inline|bubble"
    style = ""
    extraoptions = ""
    >
    <cf_socialplugin type = "plusone" url = "url to plus one" buttonsize= "small|medium|large|tall" language = "en|fr|.........." width = "" annotation = "none|inline|bubble" style = "" extraoptions = "" >
    <cf_socialplugin type = "plusone"
    url = "url to plus one"
    buttonsize= "small|medium|large|tall"
    language = "en|fr|.........."
    width = ""
    annotation = "none|inline|bubble"
    style = ""
    extraoptions = ""
    >
  6.  Syntax for a Facebook Comment box:

    <cf_socialplugin type = "commentbox"
    url = "url"
    width= ""
    colorscheme = "dark|light"
    numberofposts = ""
    style = ""
    extraoptions = ""
    >
    <cf_socialplugin type = "commentbox" url = "url" width= "" colorscheme = "dark|light" numberofposts = "" style = "" extraoptions = "" >
    <cf_socialplugin type = "commentbox"
    url = "url"
    width= ""
    colorscheme = "dark|light"
    numberofposts = ""
    style = "" 
    extraoptions = ""
    >
  7. Syntax for a Facebook Subscribe button:

    <cf_socialplugin type = "subscribe"
    url = "profile to subscribe"
    width = ""
    colorscheme = "dark|light"
    showfaces = "true|false"
    layout = "standard|button_count|box_count"
    style = ""
    extraoptions = ""
    >
    <cf_socialplugin type = "subscribe" url = "profile to subscribe" width = "" colorscheme = "dark|light" showfaces = "true|false" layout = "standard|button_count|box_count" style = "" extraoptions = "" >
    <cf_socialplugin type = "subscribe"
    url = "profile to subscribe"
    width = ""
    colorscheme = "dark|light"
    showfaces = "true|false"
    layout = "standard|button_count|box_count"
    style = ""
    extraoptions = ""
    >
  8. Syntax for Tweet button:

    <cf_socialplugin type = "tweet"
    url = "url to share"
    tweettext = "default tweet text"
    language = "en|fr|.........."
    count = "none|horizontal"
    hashtag = "Comma separated hash tags appended to
    tweet text. Do not include the #. It is preprended to each list item automatically."
    buttonsize = "small|large"
    via = ""
    recommend = ""
    style = ""
    extraoptions = ""
    >
    <cf_socialplugin type = "tweet" url = "url to share" tweettext = "default tweet text" language = "en|fr|.........." count = "none|horizontal" hashtag = "Comma separated hash tags appended to tweet text. Do not include the #. It is preprended to each list item automatically." buttonsize = "small|large" via = "" recommend = "" style = "" extraoptions = "" >
    <cf_socialplugin type = "tweet"
    url = "url to share"
    tweettext = "default tweet text"
    language = "en|fr|.........."
    count = "none|horizontal"
    hashtag = "Comma separated hash tags appended to 
    tweet text. Do not include the #. It is preprended to each list item automatically."
    buttonsize = "small|large"
    via = ""
    recommend = ""
    style = "" 
    extraoptions = ""
    >

Get help faster and easier

New user?

Adobe MAX 25

Adobe MAX

The Creativity Conference

Oct 28–30 Los Angeles and online

Adobe MAX

The Creativity Conference

Oct 28–30 Los Angeles and online

Adobe MAX 25

Adobe MAX

The Creativity Conference

Oct 28–30 Los Angeles and online

Adobe MAX

The Creativity Conference

Oct 28–30 Los Angeles and online