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

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”

:slight_smile:

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>

Where is your database question though? You’ve posted in the database forum but have no database question.

this is correct –


<CFLOOP QUERY="getFeaturedPromotions">						

...href="http://example.com/CouponViewAll.cfm?PromoID=[COLOR="#0000FF"]#CouponID#"[/COLOR]

</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

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

different og: tags?

so, not a database or coldfusion problem, then :smiley: