Skip to content

Instantly share code, notes, and snippets.

@salsalabs
Last active January 11, 2016 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salsalabs/86f99d3cf8e2b63bdd02 to your computer and use it in GitHub Desktop.
Save salsalabs/86f99d3cf8e2b63bdd02 to your computer and use it in GitHub Desktop.
Example SalsaScript for adding multiple OG tags to a template.
// insert your action OG meta <tag> 'case' statements here.
case '9214':
?>
<meta property="og:image" content="https://wfc2.wiredforchange.com/o/8001/images/blue-whale-pictures_3...>
<meta property="og:title" content="Save the Blue Whales!"/>
<meta property="og:url" content="http://action.salsalabs.com/p/dia/action/public/?action_KEY=9214"/>
<meta property="og:site_name" content="Save the Whales"/>
<meta property="og:type" content="website"/>
<meta property="og:description" content="Our giant friends in the ocean are in danger of being wiped out. Let's work to save them."/>
<?
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment