WordPress.org

Ready to get started?Download WordPress

Forums

Wordbooker
[resolved] Thumbnail not showing (40 posts)

  1. wpnebula
    Member
    Posted 2 years ago #

    Having problems getting a thumbnail to show on facebook page. I have wordbooker set up on other sites working fine. I'm using 2.0.4. I've been trying to find the issue on my own but can not. Any ideas.?

    http://wordpress.org/extend/plugins/wordbooker/

  2. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    If its working fine on other sites then it could be almost anything. The problem is with image handling issues is that its impossible to reproduce it which suggests its down to something on that site (or how FB sees that site).

  3. wpnebula
    Member
    Posted 2 years ago #

    You are correct it may not be wordbooker as im having trouble getting thumbnails to show thru other services. Like buttons and share buttons do work on facebook though.

    I'll keep testing things. Let me know if you have any suggestions.

    I did notice that in the diagnostic messages it keeps repeating "Looking for favicon.ico in http:....60x60.jpg "

    Where favicon.ico changes to other things like gravatar, facebook, plugins etc. but its always looking in the correct thumbnail file.

  4. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    What Wordbooker does is it gets a list of images in your post and then it removes "bad" ones - like icons and graphics from plugins which may well be included in a post. It also removes any FB hosted images and FB will ignore them. So basically that's Wordbooker tidying up its images before pushing them to FB.

  5. wpnebula
    Member
    Posted 2 years ago #

    Are there any thumbnails settings in wordpress that MUST be turned on in order for wordbooker to work properly?

  6. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    by default if you don't sent any of the options like "only use featured" image then Wordbooker will find the first 5 usable images in the post - even though Facebook will only use the first one.

  7. wpnebula
    Member
    Posted 2 years ago #

    Its not sending anything, the space where the thumbnail is on the facebook is blank.

  8. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    So do the diagnostics (if you set it to Show All) show it finding any valid images in the post?

  9. wpnebula
    Member
    Posted 2 years ago #

    I'm sorry, not sure how to do what you are asking. Where is show all?

  10. wpnebula
    Member
    Posted 2 years ago #

    Ok, found it. It is posting the "wordbooker_blank.jpg" to facebook page.

  11. wpnebula
    Member
    Posted 2 years ago #

    Ok, it looks like unchecking "Use Post Thumbnail only "

    and checking "Use Image from Custom Meta instead of Featured Image for Open Graph image"

    has solved the issue.

    thank you steve.

  12. drummergirl
    Member
    Posted 2 years ago #

    I've run into this same issue today and the above suggestion did not resolve the issue for me. No matter what I check or uncheck, it does not send my featured image or any image form the post to Facebook.

    I get the default image I set on every post. Did I miss something?

  13. drummergirl
    Member
    Posted 2 years ago #

    I just tried the following... reset the user session, reconnected, saved settings for wordbooker. I then refreshed the page and clicked the "send" button. This time no image appeared, not even my default (which is set).

    I went to a different post and hit send and got the default image. Went to a third post and hit send and this time got the featured image. Clicked through a few more and had either the featured or the default show up.

    Is there some sort of caching going on that needs to be cleared?

  14. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    Facebook caches urls and the data associated with them.

    Wordbooker will use the blank image if it can't find an image in the post. Its pretty hard for me to diagnose what the problem is without any diagnostic trace for a post, and your support information. BUT you can't post that data here as WordPress will delete it, so you either need to put it somewhere like pastebin or come over to the Wordbooker support forums at :

    http://wordbooker.tty.org.uk/supportforums/

  15. drummergirl
    Member
    Posted 2 years ago #

    I'm not trying to publish anything, I'm just clicking send from the front page so I dont get any diagnostics. Here is a real life example. These two pages use the same page template and each of them has a featured image attached.

    This one shows the proper image when sent:
    http://www.girlscantwhat.com/careers-hobbies/

    This one shows the default:
    http://www.girlscantwhat.com/sports-athletes-teams/
    (it should show a football player)

    So is this still Facebook caching issue or do you need me try a different test?

  16. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    You have two sets of og tags:

    One has this as the image:

    http://www.girlscantwhat.com/wp-content/uploads/2010/11/Football.jpeg

    one has

    http://www.girlscantwhat.com/gravatar.jpg

    So what plugin have you got apart from Wordbooker that is producing og tags... and which one of those images is correct?

  17. drummergirl
    Member
    Posted 2 years ago #

    The football image is the correct featured image. The gravatar image is what I have set as the default if no image is found.

    I don't have any plugins that use the gravatar and I don't even have gravatars set to display in my comments. However, a quick scan of my function.php reminded me that I setup a function that grabs the first image from a post and displays it as the featured image if no image is found. If no images are present, it defaults to the gravatar.

    // Get image from posts with no featured image
    function catch_that_image() {
      global $post, $posts;
      $first_img = '';
      ob_start();
      ob_end_clean();
      $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
      $first_img = $matches [1] [0];
    
      if(empty($first_img)){ //Defines a default image
        $first_img = get_template_directory_uri() . '/images/gravatar.jpg';
      }
      return $first_img;
    }

    Any suggestions on making this pick up the featured image and not the gravatar image?

  18. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    Well wordbooker found the second image - I think : its hard to tell because you've got something that strips comments out.

    I've not got time to go round fixing third party code - wordbooker has enough problems in itself.

    If you turn off the other set of OG tags and post a set of diagnostic logs from a successful post then I can try to work out why wordbooker is not finding the image in the post - what ever that reason is its obvious that your image grabbing code is doing the same thing.

  19. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    And the reason I need to see a post trace is that is when Wordbooker sets its fields.

    You can turn off OG tag production in Wordbooker and let the other plug in do it.

  20. drummergirl
    Member
    Posted 2 years ago #

    Ok - just ran a quick test on the same post as above that has a featured image set but sends the default image to Facebook: http://www.girlscantwhat.com/sports-athletes-teams/

    I put it in draft mode, then checked the wordbooker box to publish it to FB and then clicked publish. Here are the diagnostics (I removed my thumbnail code from functions.php - the code listed above)

    Sports Gifts for Girls	2012-02-24 09:33:35	This looks like a new post being published	publish	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Calling Wordbooker publishing function		-
    Sports Gifts for Girls	2012-02-24 09:33:35	Commence Publish		-
    Sports Gifts for Girls	2012-02-24 09:33:35	Author of this post is the Post Author		-
    Sports Gifts for Girls	2012-02-24 09:33:35	Options Set - call transition		-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_noncename	6379be168d	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_publish_default	on	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_primary_target	PW:662882293	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_primary_type	1	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_primary_active	on	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_secondary_target	FW:10846585097	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_secondary_type	1	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_extract_length	256	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_actionlink	200	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_thumb_only	on	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_use_excerpt	on	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_attribute	Posted a new post on their blog	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_status_update_text	: New blog post : %title% - %link%	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_like_button_page	1	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_share_button_page	1	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_comment_put	on	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_comment_get	on	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_publish_page_default	100	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_publish_post_default	200	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_post_edited	yes	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post option : wordbooker_new_post	1	-
    Sports Gifts for Girls	2012-02-24 09:33:35	User has been set to :	1	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Posting as user :	1	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Calling wordbooker_fbclient_publishaction		-
    Sports Gifts for Girls	2012-02-24 09:33:35	Getting the thumnail image		-
    Sports Gifts for Girls	2012-02-24 09:33:35	Getting image from custom meta :	image	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Getting image from custom meta :	thumb	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Getting image from custom meta :	Thumbnail	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Setting image array to be just thumb from meta.		-
    Sports Gifts for Girls	2012-02-24 09:33:35	No Post images found so using open graph default to keep Facebook happy		-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post Images : http://www.girlscantwhat.com/gravatar.jpg		-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post Images : http://www.girlscantwhat.com/wp-content/plugins/wordbooker/includes/wordbooker_blank.jpg		-
    Sports Gifts for Girls	2012-02-24 09:33:35	Getting the Excerpt		-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post Titled :	Sports Gifts for Girls	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Post URL :	http://www.girlscantwhat.com/sports-athletes-teams/	-
    Sports Gifts for Girls	2012-02-24 09:33:35	Share Link being used		-
    Sports Gifts for Girls	2012-02-24 09:33:35	Posting to Personal Wall (Primary) as a Wall Post		-
    Sports Gifts for Girls	2012-02-24 09:33:37	Wall Post to Personal Wall Succeeded - result :	662882293_10150536782257294	-
    Sports Gifts for Girls	2012-02-24 09:33:37	Posting to Secondary target (Girls Can't WHAT?) not active		-

    And in case this helps, here is the featured image code I use in functions.php

    // Featured Images
    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 210, 210, true ); // Normal post thumbnails
    add_image_size( 'product-thumbnail', 150, 150, true ); // Sidebar thumbnail size
    add_image_size( 'blog-thumbnail', 100, 100, true ); // Sidebar thumbnail size
    add_image_size( 'sidebar-thumbnail', 90, 90, true ); // Sidebar thumbnail size
  21. drummergirl
    Member
    Posted 2 years ago #

    And FYI - that page posted to my Facebook wall with the default image, not the featured image.

  22. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    I think its because add_theme_support('post-thumbnails'); doesn't populate the featured image field in that you have to display it doing this:

    if ( has_post_thumbnail() ) {
      the_post_thumbnail();
    }

    which is not something Wordbooker currently handles because Wordbooker pulls the contents of the post so template/theme related function calls won't be included in the regular post output.

  23. drummergirl
    Member
    Posted 2 years ago #

    Ok I follow that. So why isn't it picking up either the featured image I set or any of the images in the post?

    It seems to work on some pages and not on the others.

  24. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    I've no idea, and I'm having an evening off from Wordbooker... after the past two weeks of being screwed round first by WordPress and then by FB I need a break.

  25. drummergirl
    Member
    Posted 2 years ago #

    No problem. I'll keep fishing around and let you know if I find something.

  26. kais
    Member
    Posted 2 years ago #

    Any more word on this issue?
    For the life of me I cannot get any of the images I want to show in the Send or Share buttons.
    Site is:
    http://www.thegrandvictory.com/

    I have deactivated ALL other Facebook or Open Graph related plugins and at this point I'm simply trying to get the Default Open Graph image to be used and am having no luck.

    I've tried clearing Facebook's cache of the site using the debug too here:
    https://developers.facebook.com/tools/debug/
    and entering
    http://www.thegrandvictory.com/?fbrefresh=true
    ... to no avail.

    The word booker blank image still shows up.

    I see meta og:image tags in the header, but they're not being used.
    Is there something being passed to FB by your button code?
    Please, help!

  27. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    Kais - a diagnostic trace might help. There are several reasons why images in your posts aren't being picked up by Wordbooker but without a diagnostic trace its not possible to work out why.

  28. kais
    Member
    Posted 2 years ago #

    How do I get you that? I don't use your Facebook publishing... just the Like, Send and Share buttons?
    Here's what shows up in the Diagnostic Messages section with Show Everything on:

    Post Time Action Message Error Code
    Cache Refresh 2012-03-06 10:19:46 Cache Refresh Commence 1 -
    Cache Refresh 2012-03-06 10:19:46 Cache Refresh for -
    Cache Refresh 2012-03-06 10:19:46 UID length : 15 -
    Cache Refresh 2012-03-06 10:19:46 Cache processing for user : (100003219529656) -
    Cache Refresh 2012-03-06 10:19:46 Getting Permisions for : 100003219529656 -
    Cache Refresh 2012-03-06 10:19:46 User has permssion : publish_stream -
    Cache Refresh 2012-03-06 10:19:46 User has permssion : status_update -
    Cache Refresh 2012-03-06 10:19:46 User has permssion : read_stream -
    Cache Refresh 2012-03-06 10:19:46 User has permssion : create_note -
    Cache Refresh 2012-03-06 10:19:46 User has permssion : photo_upload -
    Cache Refresh 2012-03-06 10:19:46 User has permssion : video_upload -
    Cache Refresh 2012-03-06 10:19:46 User has permssion : manage_pages -
    Cache Refresh 2012-03-06 10:19:46 User has permssion : read_friendlists -
    Cache Refresh 2012-03-06 10:19:46 Additional Permissions needed : 0 -
    Cache Refresh 2012-03-06 10:19:46 Getting Pages administered by : 100003219529656 -
    Cache Refresh 2012-03-06 10:19:46 Page info for page ID 259653807427031 The Grand Victory -
    Cache Refresh 2012-03-06 10:19:46 Getting Groups owned or managed by : 100003219529656 -
    Cache Refresh 2012-03-06 10:19:49 Setting Status Name as : The Grand Victory -
    Cache Refresh 2012-03-06 10:19:49 Setting status as : We’re unveiling our new cocktail menu today! $7/cocktail, or four for $20. Check out a description of the menu here: http://t.co/fbN1OLrs -
    Cache Refresh 2012-03-06 10:19:49 Setting Status URL as : http://www.facebook.com/TheGrandVictory -
    Cache Refresh 2012-03-06 10:19:49 Setting user name as : -
    Cache Refresh 2012-03-06 10:19:49 Cache Refresh Complete for user 100003219529656 -

  29. Steve
    Member
    Plugin Author

    Posted 2 years ago #

    Kais - if you don't use Wordbooker for publishing then its not going to be able to work out what the image is because its only when it publishes that it populates the fields - Wordbooker's primary function is to publish to Facebook. The Like and Share options are an additional benefit and I suppose I could code in all the image stripping functionality but it would slow some page rendering down.

  30. kais
    Member
    Posted 2 years ago #

    PLEASE tell me how to help you help me.
    IF I could get the Like and Share to work, I would be inclined to use the rest of the features!

    So, I need to publish something to FB (I just tried in TEST mode and no diag messages showed up)?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags