Author: jcocking
This Mod is being converted to 3.1.x. The code base is viewtopic.php?f=456&t=2341191.
Modification Description:: Installation of Facebook Open Graph and Twitter Cards. This mod will:
- Install Facebook Open Graph Meta Tags.
- Install Twitter Cards Meta Tags.
- Use first posting content of a topic to populate the og:description and twitter:description meta tag. It will use the board description for all secondary pages.
- Use the first image posted, if present, to populate the og:image and twitter:image meta tag. It will use a default image if no image is present.
- Option to select the last image of the topic versus the first by a true/false parameter in code.
- Support video bbcode for creation of video facebook opengraph.
- Will work on all pages within the forums.
Requirements: This mod requires the Canonical URL modification. (if you have another canonical mod, it will also work, like php-SEO.)
Features:
- Use real content from the first topic posting to populate the description field. Makes each Facebook and Twitter post custom.
- Uses the first photo from the posting, to populate the Facebook. This enables your Facebook page to have unique photos for each topic.
Example page: http://www.lotuselan.net/forums/lotus-e ... 23626.html
Modification Download: https://github.com/LotusJeff/phpbb-face ... itter-tags
Comments: If you install this modification, please indicate by replying to this post. We want to have several installs before submitting the modifications to the database.
This modification will end with the following items populated within your header:
Code: Select all
<meta property="og:locale" content="" />
<meta property="og:locale:alternate" content="" />
<meta property="og:type" content="" />
<meta property="og:title" content="" />
<meta property="og:url" content="" />
<meta property="og:site_name" content="" />
<meta property="og:description" content=""/>
<meta property="og:image" content="" />
<meta property="og:video" content="" />
<meta name="twitter:card" content="" />
<meta name="twitter:url" content="" />
<meta name="twitter:title" content="" />
<meta name="twitter:description" content=""/>
<meta name="twitter:image" content="" />