Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2011, 06:14 PM
GRE GRE is offline
 
Join Date: Nov 2009
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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:
Reply With Quote
  #2  
Old 01-21-2011, 02:08 PM
seite7 seite7 is offline
 
Join Date: Jul 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 03-02-2011, 02:36 PM
seite7 seite7 is offline
 
Join Date: Jul 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. :-)
Reply With Quote
  #4  
Old 03-08-2011, 01:12 PM
macroforum macroforum is offline
 
Join Date: Mar 2010
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you please shows the line commented? Sorry for my bad english. Thanks for the solutions! Antonio
Reply With Quote
  #5  
Old 03-08-2011, 01:33 PM
seite7 seite7 is offline
 
Join Date: Jul 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
  #6  
Old 04-11-2011, 12:48 PM
The Rocketeer's Avatar
The Rocketeer The Rocketeer is offline
 
Join Date: Jun 2010
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #7  
Old 06-11-2011, 05:53 PM
hyperviperx99's Avatar
hyperviperx99 hyperviperx99 is offline
 
Join Date: Feb 2011
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by seite7 View Post
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?
Reply With Quote
  #8  
Old 06-11-2011, 06:09 PM
seite7 seite7 is offline
 
Join Date: Jul 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a # which makes the whole line inactive.
Reply With Quote
  #9  
Old 07-24-2011, 04:50 PM
hyperviperx99's Avatar
hyperviperx99 hyperviperx99 is offline
 
Join Date: Feb 2011
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank u so much Seite7! U rock!
Reply With Quote
  #10  
Old 12-23-2011, 03:15 AM
GRE GRE is offline
 
Join Date: Nov 2009
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10815 seconds
  • Memory Usage 2,263KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete