cabennett85/gittest — Issue #1517: Cleanup: FBOG Tags on BC Pages
Author: cabennett85
Created: 2012-03-02 00:53:18+00:00
State: open

I've found multiple approaches of outputting FB OG meta tags on Broadcause pages. I've found one approach on these pages:
- Issues pages
- Story pages
- Vanity pages

{{{
...
public function loadData() {
...
$this->FBOGData = EPFacebook::getFBOGTags($title, 'article', $this->canonicalUrl, $this->topic->image_url, $this->topic->description);
...
}
public function renderAdditionalHeadText() {
print $this->FBOGData;
}
public function renderCommonCss() {
$this->renderAdditionalHeadText();
}
...
}}}

And another approach on these:
- BC Homepage
- BC Cause profiles

{{{
class CausePage {
protected function renderPageHeadTags($page = '') {
switch ($page) {
//switching on $page and requires this param to render FBOG tags
}
}
}
}}}

This should be cleaned up so managing FB OG data can be more standardized. The CausePage class should have a '''renderFBOGTags()''' function that can be used by any page subclass to suit its needs. The list of BC pages that use FB OG may exceed what I've listed here, depending on when this ticket gets worked on.