![]() |
RedInk Design - Smart OG Image Tag
1 Attachment(s)
Currently vBulletin's facebook open graph image tag uses what's entered in Options -> Facebook Options -> Image URL. If you leave this field blank, the <og:image> meta tag is omitted and Facebook's crawler will try to use any image found on the page.
This mod looks for the first [img] or [attach] tags in a post and uses that image for the <og:image> meta tag. This will tell facebook's crawler to use that image for the post. This mod requires the Facebook Platform to be enabled on vBulletin (Options -> Facebook Options -> Enable Facebook Platform). It will first look for an [img] tag is the post, if none is found, it will look for an [attach] tag. If neither is found, it will use the Image you entered in the facebook options (Options -> Facebook Options -> Image URL). If that field was left empty, it will omit the <og:image> tag which is default vBulletin behavior. This was only tested on 4.2.0 (PL3). Installation: Admin -> Plugin & Products -> Manage Products -> Add/Import Product Update 12/4/2013 Changed image priorities - avatar and site logo are not priority Update 11/19/2013 Plugin updated to support multiple images |
Installed and work fine for me
Thanks, |
excuseme, I installed this product but when do you config the og:image tag??
|
This mod looks for the first [img] or [attach] tags in a post and uses that image for the <og:image> meta tag. This will tell facebook's crawler to use that image for the post.
You don't explicitly set the og:image tag. |
I made the importation and left blank the FB Image URL, but When you create the page, the tag og: image is omitted, but there are images in the the page (article of CMS Content) :(
|
This mod works fine for forum thread but not work for cms article
|
If you want it to work with the CMS articles, what should I change in the XML? There I took a look and the only thing I've noticed is that these variables: $GLOBALS['threadinfo']['description']. There is a variable that identifies those items of CMS?
|
OMG, thank you I have been looking for this forever!
|
crap fb_opengraph_array isn't a hook in my version of vbulletin
|
Okay, I just inserted the plugin manually into functions_facebook.php since there isn't a comparable hook.
@Waiter - $vbulletin->options['description'] is the variable, but I don't believe it includes img and attach tags for the cms. |
not work for CMS :(
Any idea for this? Thx :) |
Finally! Been waiting for something like this.
As long as this works on the CMS I'm good :) Testing. |
Quote:
|
Quote:
|
I need this mod for vb 3.7 pleeeeeeeeeease......
|
Quote:
|
because the article of CMS are automatic connect with the page of Facebook and Twitter, by RSS....if I use the forum post, I don't use the custom Meta Desciption and Key :(
|
Works great. Suggestion for future version.
A switch selection in admincp options that say 1) First Image 2) Provide Array 1) First Image is exactly as this mod acts. 2) Provide Array - would take all IMG and ATTACH in first post, and convert them all to <meta property="og:image" content="http://example.com/image1.jpg" /> <meta property="og:image" content="http://example.com/image2.jpg" /> that way, when a thread is posted it will give you the option to choose the pic. |
your mod doesn't account for if the site is http or https properly
had to change this line Code:
$og_array['og:image'] = 'http://' . $img_str; Code:
$og_array['og:image'] = 'https://' . $img_str; |
Quote:
|
Good catch, I will fix this in the next release.
Quote:
|
So this only works for posts?
What about threads, showdisplay and forumhome? Thanks! |
Doesn't work.
|
Quote:
Quote:
|
Quote:
|
Why does this require the facebook platform to be enabled?
|
Quote:
|
Why is everyone asking if the Facebook Platform has to be enabled? If you have Facebook Connect wouldn't you need it enabled anyway?
|
I have a problem when using this Mod. When share a thread to Facebook, It does not show the thread tittle but the site name.
|
This mod does not alter existing OG tags, only the <og:image> tag. The issue you're having is with the default vBulletin tags.
Quote:
|
Quote:
Thanks for the nice mod, |
Any chance for 3.8??
Or any suggestion to make first pic in post to be og:image?? Thanks!! |
Sorry, I don't have a 3.8 installation to test, I would have to set one up.
By default this plugin grabs the first pic in the post and sets that as og:image. It will look for the first [img] tag. Quote:
|
Quote:
I'm trying to force the first image of the post (with [IMG] bbcode) to become og: image, but don?t know how. Bye! |
Any advice will be tremendously grateful, of course..
|
So let me get this straight. If you have an image entered in (Options -> Facebook Options -> Image URL) this mod is useless?
|
This mod is for VB4 NOT VB3.
Quote:
|
This doesn't seem to be working for me, I have the plugin installed, and FB enabled.
But when you like a thread that has images, it posts to FB but no thumbnail is displayed. Is there something else that I need to do? I'm running VB Version 4.2 |
anyone have any ideas?
|
It seems facebook now only supports images bigger than 200x200 for og:image tags.
Put your page url in https://developers.facebook.com/tools/debug and see what comes back. Quote:
|
All times are GMT. The time now is 02:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|