• Resolved dog4kayak

    (@dog4kayak)


    I am not getting the right thumbnail to sow up in my facebook wall feed. the thumbnail is of a vimeo icom i have in the side bar. I am using the correct image tags. Or at least i think i am. It was working well before the newest update. Any suggestions would be great

    you can see the problem on my fb wall http://www.facebook.com/CMBishop

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter dog4kayak

    (@dog4kayak)

    never mind i found an answer

    Tell me more… I’ve the same bug!

    I’m so glad I found this post.

    I’m having the same problem. I thought it was just me.

    Anyways, I think it has something to do with the https requirement such as the Secure Canvas URL in the Application settings in facebook, but I can’t confirm anything.

    Right now the work-around is to post on your wall as a Note.

    Please let us know if anyone can resolve issue. Having WPbook post directly to the wall will allow others to be able to be linked to the FB app and allows them to LIKE the app or add it to their page.

    Thank You, Coach! Setting WPBook to post to my wall as a Note fixed the bug, but now the text of published post from my blog is limited to only one line of text… πŸ™

    Plugin Author John Eckman

    (@johneckman)

    The real fix here is to use the “featured image” or “post thumbnail” feature in WordPress.

    If you have set a featured image, WPBook will use that image when posting to the wall.

    If you have not set a featured image, WPBook posts to the wall with no image and Facebook instead fetches one from your blog (and you don’t get to choose).

    If your theme does not support featured images, you won’t see the interface for selecting one: see Mark Jaquith’s original post on the feature for more info on how to enable it in your theme

    @johneckman

    Thanks!! That did it for me.

    I’m lucky my theme supports featured image.

    If you use “post as note” the hyperlink on facebook doesn’t open the blog post anymore..

    Plugin Author John Eckman

    (@johneckman)

    @back2future can you point to an example? It works fine for me.

    If you set a featured image in WordPress, you will get the right image associated with the wall post.

    If you don’t, WPBook has no way of knowing what image it should use, and Facebook selects one – that’s out of my control.

    This is my blog post:
    http://blog.americacube.us/2011/04/04/svizzeri/

    And this is the Facebook “publish as note” post:
    http://www.facebook.com/notes/cesare-g-rossi/svizzeri/10150143975257374

    Before WPBook update all my blog post were published to Facebook with the hyperlink that point to the blog page: now the hyperlink opens the facebook post…

    Try this post of my blog:
    http://blog.americacube.us/2011/03/20/torta-flor-150/

    and search for the same post on Facebook on my wall:
    http://www.facebook.com/Back2Future

    Plugin Author John Eckman

    (@johneckman)

    @back2future

    This is what “post as note” does – if you want the older style functionality, you should uncheck “post as note.”

    To get the post thumbnail, you must be using the “featured image” setting in WordPress. See this blog post on how to enable post thumbnails (aka featured images) if your theme doesn’t suppor them:
    http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/

    There is no need for a workaround, you just have to set the featured image in your blog posts.

    @johneckman .. since I switched to forcing SSL on my wordpress site, posting of (featured) images is no longer working. To enable all content to be served over SSL i use the plugin “WordPress HTTPS”.

    Any clear-text requests to my site is given 302 (redirect) to https. When switching to SSL, I also filled in (in the facebook app settings) “Secure Canvas URL”, but changed “Canvas URL” to also go with SSL.

    When wpbook posts to the facebook wall, the post contains just the text.

    – yes, my theme support the featured image
    – yes, I have a featured image for the post

    But no dime. Any suggestions?

    Plugin Author John Eckman

    (@johneckman)

    @fredriklj

    My guess is that what is happening is that WPBook is sending to Facebook the plaintext url of the featured image, and for whatever reason Facebook won’t accept the 302 redirect (or maybe doesn’t get one – does the plugin handle direct media links as well?)

    If you enable debugging, wpbook should create a debug file in your wpbook directory, which will include notes about what it is sending for the image.

    Here’s basically what it does (with debugging code removed):

    if (function_exists('get_the_post_thumbnail') && has_post_thumbnail($my_post->ID)) {
          $my_thumb_id = get_post_thumbnail_id($my_post->ID);
          $my_thumb_array = wp_get_attachment_image_src($my_thumb_id);
          $my_image = $my_thumb_array[0]; // this should be the url
        } else {

    So I guess it depends on whether wp_get_attachment_image_src is actually getting the correct bit with https or not.

    Ok, so I finally got around debugging this. It looks like what is actually posted to facebook is correct:

    2011-07-09 10:47:31 : publish_to_facebook running, target_admin is ..
    2011-07-09 10:47:31 : Post ID is 799
    2011-07-09 10:47:31 : My permalink is https://www.vassback.se/2011/07/strandvardar-2011/
    2011-07-09 10:47:31 : function exists, and this post has_post_thumbnail – post_Id is 799
    2011-07-09 10:47:31 : my_thumb_id is 800
    2011-07-09 10:47:31 : my_image is https://www.vassback.se/wp-content/uploads/2011/07/strandvardar-150×150.jpg
    2011-07-09 10:47:31 : Post thumbail is https://www.vassback.se/wp-content/uploads/2011/07/strandvardar-150×150.jpg
    2011-07-09 10:47:31 : Post share link is
    2011-07-09 10:47:31 : Publishing to personal wall, admin is …
    2011-07-09 10:47:31 : Publishing as excerpt, https://www.vassback.se/wp-content/uploads/2011/07/strandvardar-150×150.jpg is https://www.vassback.se/wp-content/uploads/2011/07/strandvardar-150×150.jpg
    2011-07-09 10:47:35 : Just published to api, fb_response is Array
    (
    [id] => …_…
    )

    2011-07-09 10:47:35 : Past stream_publish, fb_response is Array
    (
    [id] => …_…
    )

    2011-07-09 10:47:35 : Page access token is …|…-…|…|…
    2011-07-09 10:47:35 : Publishing to page …
    2011-07-09 10:47:35 : Publishing to page, image is https://www.vassback.se/wp-content/uploads/2011/07/strandvardar-150×150.jpg
    2011-07-09 10:47:36 : Just published as page to api, fb_response is Array
    (
    [id] => …_…
    )

    Also, when checking the access logs of the web server, there are not clear-text requests back. Hence there will be no redirects to follow either.

    What looks funny from the above is the “Post share link is” which ends with nothing.

    Any more suggestions?

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘WPBook: 2.2 image thumb’ is closed to new replies.