Custom Facebook Sharing
I don't like the way vBulletin generates the Facebook meta tags by default. We have a long site name and description which is placed before the article title. It also tends to always want to use the default sharing picture set in options instead of the article image. I've been editing "/includes/functions_facebook.php" to achieve what we want, if there's a way to do it with plugins please let me know. So far I've managed to get it to use the first attached image in an article as "og:image" by parsing the attachment ID from the description text. Now I need to make "og:title" simply be the article title or maybe "Article Title - bbtitle". I did a var_dump on $vbulletin but see that the article title is a protected array. Can anyone tell me how to access this variable or how to otherwise access the title. I'm to the point where I think I may have to convert the SEO url back to text and use that but I'm hoping there's a better way. Any help would be appreciated.
|