we started to use the new social media feature.
But when we "like it" on facebook we get a random picture from the web version. We also would like to use the campaign name when posting it on facebook instead of the email subject.
Is this possible or maybe announced for an upcoming version of CM ?
A lot of customisation is possible via facebook's open graph tags, inserted in the html head. The only tag we actually insert into the campaign matches the title, and by default that does come from the campaign subject, chosen because it's already public information (unlike the campaign name).
Check out the source from the January newsletter - the tag we insert looks like this:
<meta property="og:title" content="Social sharing is here! Plus email usability tips, design inspiration and more"></meta>
You can customise this by simply inserting this tag yourself. If our code encounters a "og:title" meta tag in the campaign content, we won't insert one.
Full documentation of the available open graph tags is available on facebook's developer site. A variety of customisations are possible, including the image you asked about.
Do some experimentation with a few campaigns. My only warning to be careful with using the og:url tag, or you might find your campaign "like" buttons end up pointing people elsewhere.
Hope that helps. Happy facebooking :)
Thanks a lot.
That does the trick.
This seemed to work the first time we sent a newsletter and specified OG tags in the head of the email. But when we preview our latest email (using the same template) and Like content, the share message is grabbing an image from the email and not the specified OG share image.
I'm hoping this is because it's a preview, but I don't remember this happening the last time. Any ideas?
Hi veryedgy, welcome to the forums. This may be a caching issue, particularly if someone has 'Liked' one of your test emails. One way to test this is to try using Facebook's share URL with your webview URL and a query string to 'refresh' FB and see if the correct image appears. Try using the following in your browser:
http://www.facebook.com/sharer/sharer.php?u=[your share URL here]?[random query string]
If the correct image appears in the FB preview, you can either wait for FB's cache to expire (anywhere from one day to a week), or share the URL created above. If you don't have any luck with this technique, feel free to contact our support team with campaign details and we'll look into this further. Thank you!
One further comment: facebook caches the open graph information (og: tags) and page content when first visiting it and then every 24 hours after that (from memory - that last might be old information). If you're seeing old information associated with a facebook like you can put your share URL into the debugger and it will force facebook to re-parse your page.
We do this automatically when updating the campaign subject, and it looks like we'll need to investigate doing it under other circumstances.
From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that drive real business results.Get started for free