Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
More Open Graph Images (Free) by BOP5 Details »»
More Open Graph Images (Free) by BOP5
Mod Version: 1.0.2, by BirdOPrey5 (Moderator) BirdOPrey5 is offline
Developer Last Online: Aug 2015 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (6 votes - 5.00 average) Installs: 50
Released: 17 Jul 2013 Last Update: Never Downloads: 224
Supported Uses Plugins Auto-Template  

Brought to you by BirdOPrey5 / Qapla.com

If you don't know what Open Graph is, it is a standard which Facebook and other big social networking sites use to extract information from a web page being shared/posted on their site.

Open Graph meta tags tell Facebook the URL of the page to share, the title of the page, the type of content, and also one or more images to be used as the thumbnail when a page is shared.

A major limitation of vBulletin 4.x has always been the image. The only option vBulletin has is to enter the URL to 1 image in Facebook Options in the Admin CP, and the same image would be shared every time any page from your site was posted to Facebook. This would usually be your site's logo. While it was OK, it was really annoying you couldn't get a picture that had more to do with the exact thread being shared. For example if the thread was about Jeeps and had pictures of Jeeps in the thread it would be better to show one of those pictures instead of the site logo.

Now you can.

Live Demo: http://www.qapla.com/mods/showthread...e-images-tests (View the HTML source code)

This Free version will find-
  • All images included via the [IMG] BBCode in the entire thread page
  • All Embedded YouTube Video image thumbnails used on the thread page
  • All Image file attachments (full size or thumb nails) on the thread page*

And add ALL of these as possible og meta tags on your thread page.

The Pro Version available on Qapla.com works on Blog Entries and CMS Articles as well, but is otherwise the same.

Note: The "Pro" version is bundled with my More Share Options TNG Pro mod, a subscription to one gives access to both.

Important Notes - This mod only promises to add the images, youtube videos, and attachments (if enabled) to the list of available of meta tags and this can be confirmed working by viewing the HTML source of the page or using the Facebook Debugger to see all images and other content scraped form your page: https://developers.facebook.com/tools/debug

This mod cannot promise Facebook will actually use these images! It is important to understand that giving these pictures as an option to Facebook is as far as any modification can go. After that it is up to Facebook's scraping algorithm to determine which, if any, images will be presented to the users as an option when sharing the page. Facebook does not publish strict details on how they make these choices. Search on Google and you'll quickly find many answers to the question but each one different.

Facebook does say that images should be (not must but should be) at least 200 by 200 pixels but they prefer even more a 1500 x 1500 pixel image. They prefer images closer to square than very long or tall. They will auto resize or crop as needed.

*It appears Facebook will never use vBulletin attachments even though the Facebook Debugger does pick them up and show them. I suspect the reason is because attachments are not to actual jpg/gif/png images but instead are links to attachment.php. Nevertheless I included the attachment option because Facebook may change this behavior one day and other social networks may not have this limitation.

There does not seem to be any ham in presenting multiple images to Facebook, they will choose what they want.

I have had more luck getting the option to choose between different thumbnails when using the older "Facebook Share" button as opposed to the "Facebook Like" (or Recommend) button that is default in vBulletin. If you use the free or Pro version of my More Share Options TNG mod you can easily change to the Facebook Share button.

Finally this mod knows how to deal with both https and regular http images. The og meta tags are slightly different for each, the correct one will be used based on the image source found.

Also, this mod is designed to work with or without the Facebook Platform enabled.

For use on vBulletin 4.x.x only. Tested on 4.07, 4.2.0, and 4.2.1.

------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated.
Nominate MOTM if you LOVE it!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	more_og_vb4_html_source.jpg
Views:	826
Size:	55.1 KB
ID:	145774Click image for larger version

Name:	more_og_vb4_settings.jpg
Views:	502
Size:	110.4 KB
ID:	145775

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Open Internal Links in Same Tab - Ported by BOP5 (VB 4.x & VB 3.x) BirdOPrey5 vBulletin 4.x Add-ons 24 16 Oct 2014 09:05
Open Internal Links in Same Tab - Ported by BOP5 (VB 3.x & VB 4.x) BirdOPrey5 vBulletin 3.8 Add-ons 12 30 Sep 2012 19:29

Comments
  #2  
Old 17 Jul 2013, 23:55
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Reserved.
__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #3  
Old 18 Jul 2013, 01:58
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Good stuff BOP5, will this work if you have facebook blocked with Symon Lloyd's Ban Spiders by User Agent Mod here? : http://www.vbulletin.org/forum/showthread.php?t=268208
Reply With Quote
  #4  
Old 18 Jul 2013, 09:56
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by CAG CheechDogg View Post
Good stuff BOP5, will this work if you have facebook blocked with Symon Lloyd's Ban Spiders by User Agent Mod here? : http://www.vbulletin.org/forum/showthread.php?t=268208
Yes, in that it will still create the open graph images.

However if the Facebook scraper is blocked Facebook will never be able to see/read your page so those images would only be useful to other sites that look for Open Graph images, it won't let Facebook work.
__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.

Last edited by BirdOPrey5 : 18 Jul 2013 at 10:12.
Reply With Quote
  #5  
Old 18 Jul 2013, 10:04
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Good stuff BOP5, thanks for clarifying
Reply With Quote
  #6  
Old 18 Jul 2013, 18:03
Justinphx Justinphx is offline
 
Join Date: Jan 2012
Installed - but I have one question:


Response Code: 200
Fetched URL: http://mysite.com/forum/showthread.php/mytopic
Canonical URL: http://mysite.com/forum/showthread.p...ad.php/mytopic


When using the debug it seems Facebook adds showthread.php again to the link which of course won't work and gives an error. Any idea why it does this? Thanks.
Reply With Quote
  #7  
Old 18 Jul 2013, 23:21
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Are you sure that doesn't happen with this mod disabled?

Yes I have seen that before and it is usually because the og url tag is missing or wrong.

Do you normally have Facebook platform enabled?

Can I get a link to your forum?
__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #8  
Old 19 Jul 2013, 13:10
player378's Avatar
player378 player378 is offline
 
Join Date: Nov 2011
wow very nice
Reply With Quote
  #9  
Old 22 Jul 2013, 10:18
hugh_ hugh_ is offline
 
Join Date: Mar 2005
BOP5 the link to your home page in the description is broken...

http//www.qapla.com/mods/showthread.php/1037-More-Open-Graph-Images-ogimage-Pro-by-BOP5
Reply With Quote
  #10  
Old 27 Jul 2013, 12:57
Budget101 Budget101 is offline
 
Join Date: Jul 2008
This does actually add the image url, but unfortunately it displays is like so:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Which is not and cannot be parsed by Facebook. The only way to get this to work and display the image correctly is to link to an eternal image in order to get the url to resolve with an extension that Facebook will actually parse, example:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I use vbSEO and it will rewrite images to a readable URL, but unfortunately, it appears to rewrite them AFTER this mod executes, so they aren't displayed.

Currently the mod populates the og:image tag, but unfortunately it returns the code as

attachment.php?attachmentid=xx

I would like to alter it so that it displays the rewritten vbseo url into the og>:image tag (source code)

the code is:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

my attachment rewrite conditions are:

mydomain.com/ content/attachments/[attachment_id]-[original_filename]


I would like to rewrite the code so that it will publish the url in the same format as vbSEO does...

Could someone please help me with the correct syntax to use in this case??
Reply With Quote
  #11  
Old 27 Jul 2013, 13:57
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by hugh_ View Post
BOP5 the link to your home page in the description is broken...

http//www.qapla.com/mods/showthread.php/1037-More-Open-Graph-Images-ogimage-Pro-by-BOP5
Thanks. Very annoying in Opera Next browser it doesn't auto erase the existing http:// like it does in other browsers when inserting a link.

Originally Posted by Budget101 View Post
This does actually add the image url, but unfortunately it displays is like so:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Which is not and cannot be parsed by Facebook. The only way to get this to work and display the image correctly is to link to an eternal image in order to get the url to resolve with an extension that Facebook will actually parse, example:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I use vbSEO and it will rewrite images to a readable URL, but unfortunately, it appears to rewrite them AFTER this mod executes, so they aren't displayed.

Currently the mod populates the og:image tag, but unfortunately it returns the code as

attachment.php?attachmentid=xx

I would like to alter it so that it displays the rewritten vbseo url into the og>:image tag (source code)

the code is:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

my attachment rewrite conditions are:

mydomain.com/ content/attachments/[attachment_id]-[original_filename]


I would like to rewrite the code so that it will publish the url in the same format as vbSEO does...

Could someone please help me with the correct syntax to use in this case??
That may be possible but before I waste time on it and find it doesn't work please post a link to an actual attached image from your forum so i can test it works.
__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #12  
Old 27 Jul 2013, 14:22
Budget101 Budget101 is offline
 
Join Date: Jul 2008
Originally Posted by BirdOPrey5 View Post
That may be possible but before I waste time on it and find it doesn't work please post a link to an actual attached image from your forum so i can test it works.
The following image is from my home page


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But the open graph mod displays that very same image in the source code as:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by Budget101 : 27 Jul 2013 at 14:38.
Reply With Quote
  #13  
Old 27 Jul 2013, 14:42
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Budget101 View Post
The following image is from my home page


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But the open graph mod displays that very same image in the source code as:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thanks, but it seems what I was afraid of is still true- Facebook can tell it is a redirect and not a real image and it still does't work.

Check out -
http://www.qapla.com/mods/showthread...sting-Facebook

Click the Facebook Share button

Your image isn't a option even though it is correct in the og tags.
__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #14  
Old 27 Jul 2013, 14:54
Budget101 Budget101 is offline
 
Join Date: Jul 2008
Oh Yeah, I see what you mean! Dang.
Reply With Quote
  #15  
Old 02 Aug 2013, 23:02
cdoyle cdoyle is offline
 
Join Date: Oct 2004
I just installed this, but not why it's not working.
Facebook always tries to use my banner image as the image on posts.

Here is a page, I've been testing with
http://www.caraudiocentral.net/forum...ro-Restoration

When I run it in the debugger, I get these errors.

Inferred Property: The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
og:image should be larger: Provided og:image is not big enough. Please use an image that's at least 200x200 px. Image 'http://www.caraudiocentral.net/forums/images/misc/newbannerv4.png' will be used instead.
Mismatch og:url and canonical url: og:url tag in the header is not the same URL as rel='canonical' link in the html.

My images in the thread are over 200x200, so not sure why it's defaulting to the banner image. Any ideas?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 19:13.

Layout Options | Width: Wide Color: