Dynamic Facebook and Twitter Meta Tags for phpBB

December 21, 2013

When the second person logged on to the internet, there was a discussion. For many years, the primary discussion method on the internet was forums. Forums allow people to group discussions around topics. There are numerous forums on a wide variety of topics on the internet.

Then came Social Media sites like MySpace, Facebook and Twitter. These tools are great for quick, simple discussions.  These tools quickly become limiting when a detail discussion is occurring.  Detail discussions between multiple people is where Forums excel.

There is a place within the internet world for both social media and forums. They both need to be connected together.  This post is about the steps needed to add specialized meta tags to your phpBB forum for Facebook og tags and for Twitter cards.

The official Mod post at phpBB can be found at: Dynamic Facebook Open Graph and Twitter Meta Tags.

The code can be download here: Dynamic_Facebook_Twitter_tags_vers-0-2-0

These instructions will provide the following meta tags within your phpBB installation:

<meta content="en_US" />
<meta content="en_GB" />
<meta content="article" />
<meta content="" />
<meta content="" />
<meta content="" />
<meta content="" />
<meta content="" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:url" content="" />
<meta name="twitter:title" content="" />
<meta name="twitter:description" content="" />
<meta name="twitter:image" content="" />

This mod will pull in the first 150 characters from the topic and the first image from the topic to use in the tags. If there is not an image, it will use a default image provided by the mod installer. If you are on any other page within the forum, the mod will pull in static content.

You Might Also Like

No Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.