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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-31-2012, 10:44 AM   #1
Jel
Confirmed User
 
Jel's Avatar
 
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?
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-31-2012, 07:25 PM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
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
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-01-2012, 02:33 AM   #3
Jel
Confirmed User
 
Jel's Avatar
 
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).
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-01-2012, 05:37 AM   #4
foxyflesh
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
foxyflesh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-01-2012, 07:57 AM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,220
Quote:
Originally Posted by Jel View Post
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).
oh thouhgt you meant thumbs for users for comments, if you wanna just select the thumbnail do the meta tag for fb.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2012, 09:28 AM   #6
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Quote:
Originally Posted by foxyflesh View Post
<meta property="og:image" content="http://SITENAME/IMAGENAME" />

use that to tell facebook what image to use
that exact code? And where would I put that (if it is)? Seems that's a set image for the site as a whole? I want it to pull the specific pic from the specific post being shared/cpmmented on. Thanks
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2012, 10:52 AM   #7
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,220
Quote:
Originally Posted by Jel View Post
that exact code? And where would I put that (if it is)? Seems that's a set image for the site as a whole? I want it to pull the specific pic from the specific post being shared/cpmmented on. Thanks
something like this in your functions.php file

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
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2012, 12:51 AM   #8
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
nope, still just pulls a random image off the page ><
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.