Skip to main content
Participant
June 27, 2011
Question

Adding Facebook, Twitter links to index.cfm

  • June 27, 2011
  • 2 replies
  • 900 views

Hey all,

Brand new to CFM and need to add the Facebook sharer and twitter links to .cfm page and was wondering if anyone can point me in the right direction?

Thanks.

    This topic has been closed for replies.

    2 replies

    12Robots
    Participating Frequently
    June 28, 2011

    Typically, adding links like that do not involve the serverside language at all. It is usually just HTML and JS. Take a look at Facebook's Like Button creator

    https://developers.facebook.com/docs/reference/plugins/like/

    If you are trying to create them dynamically then that is a different story and you would need to provide some more detail on what you are trying to do.

    fufaso11Author
    Participant
    June 28, 2011

    I saw that earlier, but I need them to be created dynamically.

    I have an index.cfm page that has links to multiple stories, when you click on a story, I want the tags to be referencing that particular story.

    Thanks.

    12Robots
    Participating Frequently
    June 28, 2011

    Is that really what you feel is more detail?

    What are these "stroies"? Do you have URLs for them? If so, then you may just need to replace the URL and other appropriate code in the code generated by the Facebook like button creator.

    Have you done dynamic development at all? Are you familiar with <cfoutput>, variables, etc? Where is your data coming from? Is the app DB driven?  What have you tried so far? Do you have any examples of your content? Existing code?

    We cannot build your app for you. You can't just throw a one-sentence spec on a forum and expect a good answer.

    Inspiring
    June 27, 2011

    anchor tags?

    or is there more to this question than meets the eye.

    fufaso11Author
    Participant
    June 28, 2011

    Hi Dan,

    No there is not more to it than meets the eyes, anchor tags are what I am after. It's most likely a very simple process, but having never seen coldfusion code before and not having the ability to test the page on my current setup, I wanted to make sure I was approaching the situation in the right way.