![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Feb 2007
Posts: 6,904
|
plugin that works for facebook comment/like thumbnails
tried a few and can't get any to work correctly - comment boxes/like buttons below wp posts appear obviously on fb, but with a totally random and unrelated thumbnail image. Anyone know of a plugin that actually pulls the image from the post liked/commented on?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,220
|
you could make it pull it from the useraccount, which uses gravatar, just a matter of doing a custom comment callback with a custom comment form
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Feb 2007
Posts: 6,904
|
yeah thing is though I want it to pull the pic from the actual post. fb seems to want to pick whichever pic on the page is closest to it's 180x180 or whatever dimension it is. There are a couple plugins that say they use the post pic, or assigned thumbnail/featured image but they don't always (in fact hardly ever).
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Registered User
Industry Role:
Join Date: Apr 2012
Posts: 54
|
<meta property="og:image" content="http://SITENAME/IMAGENAME" />
use that to tell facebook what image to use |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,220
|
Quote:
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Feb 2007
Posts: 6,904
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,220
|
Quote:
Code:
function insert_image_src_rel_in_head() { global $post; if ( !is_singular()) //if it is not a post or a page return; if(!has_post_thumbnail( $post->ID )) { //the post does not have featured image, use a default image $default_image="http://example.com/image.jpg"; //replace this with a default image on your server or an image in your media library echo '<meta property="og:image" content="' . $default_image . '"/>'; } else{ $thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'medium' ); echo '<meta property="og:image" content="' . esc_attr( $thumbnail_src[0] ) . '"/>'; } echo " "; } add_action( 'wp_head', 'insert_image_src_rel_in_head', 5 );
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Feb 2007
Posts: 6,904
|
nope, still just pulls a random image off the page ><
|
![]() |
![]() ![]() ![]() ![]() ![]() |