When I share my forum link in the messages, it generates the title, description and a random icon from the forum - Is there a way to choose what icon will it be? I want it to be just the forum's logo.
Facebook logo for sharing
Collapse
X
-
Facebook logo for sharing
Founder of the Israeli Youtubers forum at TheHub and tech youtuber at HowToEvery.Tags: None -
We're currently waiting for vBulletin to take this matter up as an improvement request.
However, I know how EXTREMELY important it is to get this up and running. If you want your site to survive, you need to take advantage of social media. That's why I decided I couldn't wait anymore and why I decided to take matters into my own hands. I have it working 100% on my site, but be forewarned, this is a little advanced. I highly suggest you back everything up (in case you mess something up and need to restore) before doing this. However, here is the walkthough to get it working:
Manually Add Open Graph Metadata og:image to <head>- Temporarily enable Debug Mode (edit both (2) config.php files, one in forum, the other in forum>core>includes)
- Products & Hooks > Add/Import Product
- Added a new product "OG Image"
- Title: Manual OG Image Meta Data
- Verison: 1.0.0
- Description: Manually add Open Graph meta data to head
- Created a new hook template "og_img" and linked it to OG Image
- Product: Manual OG Image Meta Data
- Active: Yes
- Hook Location: header_head
- Title: OG Image
- Ex order: 10
- Template Name: og_img
- Hook Argument: page=page
- Added a new template in Style Manager > MASTER STYLE (only available in debug mode) (edit templates to edit this code) and linked it to "OG Image" Product. This is where the <meta og:image> html code goes.
Save and should work...
Just make sure in step 5, the Open Graph facebook image has been uploaded to the directory you specify in this html code.
I'll try to help you if you get stuck...but again, this is pretty advanced and I know next to nothing about php so maybe it would be better if someone from vBulletin could check this over and make sure my method is correct.Last edited by fenderbob; Sun 3 Jul '16, 7:21pm. -
Here are my notes on how to enable debug mode. You can enable it globally, but personally I think it's smarter to only enable it for your IP address. Go to google and type in "what's my ip address?" Make a note of it.
Now, both config.php files need to be replaced.
Make backups of the server copies first!
ONLY EDIT WITH NOTEPAD++ (download this program if you don't have it...you probably don't unless you're a programmer)
Inside each config.php file, enter IP address so only that IP address sees debug mode. 'debug' and 'misc' coorespond to 2 different config.php files. Replace "xxx.xxx.xx..." with your proper IP address.
When you have the config.php files open, just do a find for the term "debug" and match each of the following codes respectively.
CONFIG.PHP FILE 1
Code:if ($_SERVER['REMOTE_ADDR'] == "xxx.xxx.xx.xxx") { $config['debug'] = true; }
Code:if ($_SERVER['REMOTE_ADDR'] == "xxx.xxx.xx.xxx") { $config['Misc']['debug'] = true; }
Comment
-
I have a mod that will add Facebook Open Graph tags and Twitter Card tags. It dynamically pulls the first attached image in the first post in a thread. If no attached image, it will use the default image you configured.
This will enhance the Facebook and Twitter shares for your site.Last edited by glennrocksvb; Thu 7 Jul '16, 6:47pm.👍 1Comment
-
👍 1Comment
Related Topics
Collapse
-
by fenderbobCan someone please give me a quick tutorial as to how I can do this?
Here's what I need to add inside the <head> on every single page of my site:
Code:<meta
-
Channel: Support Issues & Questions
-
-
by LockedOnLawAfter upgrading two sites to 5.3.4 it appears as though open graph is still using the vbulletin5_logo.png image in the images/misc folder rather than the image in the URL. Even more confusing is changing...
-
Channel: Support Issues & Questions
-
-
by Flash04jvWhen anyone types our URL on Facebook, or tries to link to a page on our forum, these random images show up. Along with random text. It's like Facebook is just randomly grabbing an image from our page...1 Photo
-
Channel: vB Cloud Support & Troubleshooting.
-
-
by nomadgirlHi all,
When I post a link to my forum (vbulletin5) on Facebook, it automatically chooses my personal forum profile image or the forum logo (which is the wrong size to display properly in...-
Channel: Support Issues & Questions
-
-
by fenderbobI'm not really interested in using the Vbulletin facebook connect features.
However, I would like to make my site "facebook friendly"
That means entering in the proper...-
Channel: Support Issues & Questions
Thu 21 May '15, 5:22pm -
Comment