SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Jun 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dynamic Facebook like/send buttons for Coldfusion

    Hi,

    I am trying to dynamically create facebook like/send button while looping through a Coldfusion query. Although the loop is creating the fb:like tag correctly when I look at the source code, when I click on the send button I get different results for each one even though they should be the same. Do I have to create new forms with dynamic og tags? Any help would be appreciated. I want it working similar to how you would like a dynamically created blog post for each entry.

    Thanks

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,250
    Mentioned
    59 Post(s)
    Tagged
    3 Thread(s)
    you know how on some forums they say "pics or it didn't happen"

    well, here, it's "code or we can't help you"

    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Member
    Join Date
    Jun 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, here is basically what it is doing. It is creating dynamic fb:like tags with PromoID. The other problem is I would like to to show a dynamic logo and description as well. Do/Can I dynamically create og meta tags for each one?

    <CFLOOP QUERY="getFeaturedPromotions">
    <div class="social">
    <fb:like href="http://www.searchit.com/sp/main/CouponViewAll.cfm?PromoID=#CouponID#" layout="button_count" send="true" width="300" show_faces="false"></fb:like>
    </div>
    </CFLOOP>

  4. #4
    SitePoint Wizard guelphdad's Avatar
    Join Date
    Oct 2003
    Location
    St. Catharines, ON Canada
    Posts
    1,708
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where is your database question though? You've posted in the database forum but have no database question.

  5. #5
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,250
    Mentioned
    59 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by NavMen View Post
    ... I would like to to show a dynamic logo and description as well.
    this is correct --
    Code:
    <CFLOOP QUERY="getFeaturedPromotions">						
    
    ...href="http://example.com/CouponViewAll.cfm?PromoID=#CouponID#"
    
    </CFLOOP>
    if this is correctly generating a link for each coupon id that is returned by the query, then you can easily add other data returned by the query

    could we see the CFQUERY for getFeaturedPromotions please
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  6. #6
    SitePoint Member
    Join Date
    Jun 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    I figured it out. I have to make the facebook tag href point to a .htm file with different og: tags. Kind of a crappy design on Facebook's part. Thanks

  7. #7
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,250
    Mentioned
    59 Post(s)
    Tagged
    3 Thread(s)
    different og: tags?

    so, not a database or coldfusion problem, then
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •