vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   CMS Articles > Facebook posts (Where's the thumbnail?) (https://vborg.vbsupport.ru/showthread.php?t=257486)

GRE 01-20-2011 06:14 PM

CMS Articles > Facebook posts (Where's the thumbnail?)
 
When publishing an article to my site the Facebook Application doesn't give the choice of any thumbnails of pics included in the article.

I've read that a meta tag missing causes this problem. Is there any add-on for that, or how can I fix this issue?:erm:

seite7 01-21-2011 02:08 PM

I just wanted to open a thread for this myself. I guess the reason is that all the attachment are delivered like this in the source code:
Code:

attachment.php?attachmentid=12345&cid=99
Facebook will probably only look for things like .jpg, .png and so on.

But I would also be very interested in any solution for that. Using images for Facebook sharing certainly draws a lot more attention to a post.
And since my CMS articles are are visible to anyone I don't need any rights management for attachments here.

seite7 03-02-2011 02:36 PM

I figured it out.
In the facebook_functions file in the includes directory there is a line that creates an og:image meta tag. Facebook will prefer to use that image. I commented this line out and now Facebook will give the usual option to select any image from the article. :-)

macroforum 03-08-2011 01:12 PM

Can you please shows the line commented? Sorry for my bad english. Thanks for the solutions! Antonio

seite7 03-08-2011 01:33 PM

in includes/functions_facebook.php

REPLACE:
PHP Code:

// use the feed image if there is one
    
if (!empty($vbulletin->options['facebookfeedimageurl']))
    {
        
$og_array['og:image'] = $vbulletin->options['facebookfeedimageurl'];
    } 

WITH:
PHP Code:

// use the feed image if there is one
    
if (!empty($vbulletin->options['facebookfeedimageurl']))
    {
        
#$og_array['og:image'] = $vbulletin->options['facebookfeedimageurl'];
    


[/PHP]

The Rocketeer 04-11-2011 12:48 PM

I am using Vb 4.1.3 and still I have the same problem....no fix, tried the code above, is there any thing else we can do ? :(

hyperviperx99 06-11-2011 05:53 PM

Quote:

Originally Posted by seite7 (Post 2170920)
in includes/functions_facebook.php

REPLACE:
PHP Code:

// use the feed image if there is one
    
if (!empty($vbulletin->options['facebookfeedimageurl']))
    {
        
$og_array['og:image'] = $vbulletin->options['facebookfeedimageurl'];
    } 

WITH:
PHP Code:

// use the feed image if there is one
    
if (!empty($vbulletin->options['facebookfeedimageurl']))
    {
        
#$og_array['og:image'] = $vbulletin->options['facebookfeedimageurl'];
    


[/PHP]

I honestly can't tell the difference. Does this really work?

seite7 06-11-2011 06:09 PM

There is a # which makes the whole line inactive.

hyperviperx99 07-24-2011 04:50 PM

Thank u so much Seite7! U rock!

GRE 12-23-2011 03:15 AM

We've reached 4.1.9. and Vbulletin still hasn't fixed that. Thanks Seite7!


All times are GMT. The time now is 09:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01196 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete