This still works well, I've just incorporated it on my forum. It does not pull images from the thread, but it will use a default image. Facebook says the image should be 1200x630 but it was getting cut off so 1170x630 seems to work better for me...
I'm using this in conjuction with this mod:
Easiest way to add Social Bookmarks on Thread
You can read the Open Graphics Protocol documentation
You can also go to
https://www.facebook.com/insights and get insights for your domain and connect those insights to your facebook page along with connecting to a facebook app. You can incorporate this into this plugin, editting the .xml file before importing and find:
Code:
$og_array = array(
'og:site_name' => $vbulletin->options['bbtitle'],
'og:description'=> $vbulletin->options['description'],
'og:title' => $vbulletin->options['bbtitle'],
'og:url' => $vbulletin->options['bburl'],
'og:image' => $vbulletin->options['nex_opengraph_image'],
'og:type' => 'website'
);
Include 2 more elements to this array:
Code:
$og_array = array(
'og:site_name' => $vbulletin->options['bbtitle'],
'og:description'=> $vbulletin->options['description'],
'og:title' => $vbulletin->options['bbtitle'],
'og:url' => $vbulletin->options['bburl'],
'og:image' => $vbulletin->options['nex_opengraph_image'],
'og:type' => 'website',
'fb:app_id' => 'YOUR_APP_ID',
'fb:admins' => 'YOUR_ADMIN_ID'
);
Replace YOUR_APP_ID and YOUR_ADMIN_ID with whatever you get from FaceBook.
Then test your markup here:
https://developers.facebook.com/tools/debug/sharing/
Maybe someone knows how to parse the thread text and pull the first hotlinked image or embedded youtube video?
This is what my final product looks like:
And here's a nice bonus: Google+ picks up the OG meta tags as well w00t