How can I make the Share on Facebook button go to a Convio page?

Options

Using the URL http://www.facebook.com/sharer.php?u=&t=, we've tried using "Share on Facebook" to share items from http://laglc.convio.net/site/PageServer?pagename=OUT_on_the_Town. First we tried linking to anchors (which would be ideal), but Facebook did not pull text and images from the right part of the page. We subsequently tried bulding seperate pages for the events to share, but the links often go to our homepage instead of the correct Convio page.

Tagged:

Comments

  • One thing to be careful of in this is properly escaping your URL. This how I think it ended up going to your homepage.

    so u=http://someurl/events?somevalue=pagename&time=five#fingers&t=some article title would be here

    becomes u=http%3A//someurl/events%3Fsomevalue%3Dpagename%26time%3Dfive%23fingers&t=some%20article%20title%20would%20be%20here

    you'd want to escape everything that came after u=

    and everything that comes after &t=

    Otherwise, facebook might think the link is short than it actually is.

    Escaping it should make it work for both hash tags, and long convio event URLs

    I think you can do the escaping in convio (if that's where these share links are by using)  by using a T1 tag around the URL (I've not actually tried this)


    ]

    Also attaching an HTML file with some javascript that will escape the contents as well.

    The image is a little more complicated in that you CAN inset an image link in the header which facebook will pick up


    <link rel="image_src" href="http://trails.sierraclub.org/images/facebookbanner.jpg" />

    If you have multiple things on a page, you might try placing multiples of these.

    But if your events are on multiple pages, I don't think you have to worry about this.

Categories