Blog

Setting up a Site to Share on Social Media

To get your website to show previews correctly in Twitter, Facebook, and LinkedIn.

You can see how facebook views your page here: https://developers.facebook.com/tools/debug/
and twitter: https://cards-dev.twitter.com/validator
LinkedIn: https://www.linkedin.com/post-inspector/inspect/

Add this to your <head> tag (won’t work in <body>):
<meta property=”og:image” content=”http://url.to/preview/imageLocation.jpg” />
<meta property=”og:description” content=”Description of Conent” />
<meta property=”og:title” content=”Social Media Title” />
<meta name=”twitter:site” content=”@twitterhandle”> <meta name=”twitter:domain” content=”http://www.domain.com/”/>
<meta name=”twitter:card” content=”summary_large_image”>
<meta name=”twitter:image” content=”http://url.to/preview/imageLocation.jpg“> <meta name=”twitter:title” content=”Title for Twitter”>

You may want to have a place on your news page to upload an image (or 2) for social sharing then create images using this guide: https://makeawebsitehub.com/social-media-image-sizes-cheat-sheet/

Also, if you’ve got validation errors, it may not share correction on LinkedIn.

Monitoring Facebook Reach and Likes through Google Sheets

I live and die by data, and my favorite way to convey data is through Google Sheets. I recently wanted to set up a way to track all outreach efforts by the non-profit I work for. Instead of manually adding facebook insight numbers on every post, I thought there must be a way to automatically pull those reach numbers from Facebook into my spreadsheet.

As I began my research the first several articles were clear product placement articles for Supermetrics. They want to charge you $100 a month to pull the data in for you. That’s quite a steep price for a non-profit, so I continued looking.

Turns out Facebook has a quite extensive API to accomplish this and Ana at MixedAnalytics lays out step by step how to set up an API token that doesn’t expire and some examples of the post data that you can pull using it. Here’s the link to the article which I highly recommend if you, like me, want a direct update to your google sheets data with Facebook analytics.