WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] [closed] Publicize - Facebook link not displaying correctly (51 posts)

  1. nicktomkinson
    Member
    Posted 1 year ago #

    I have started using Publicize to auto publish to Facebook but the link is not displaying correctly on Facebook due to the ?fb_source=pubv1 string that is being appended to the end.

    For example:

    The full URL of my post displays correctly on Facebook:
    http://outdoorescapes.co.uk/opa-winter-series-round-iii/

    The shortlink of my post displays correctly on Facebook:
    http://wp.me/p2SyPr-1Y

    But the link published to Facebook by publicize does not display correctly:
    http://outdoorescapes.co.uk/opa-winter-series-round-iii/?fb_source=pubv1

    Is the ?fb_source=pubv1 string being appended by Publicize or is it done by Facebook?

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

  2. nicktomkinson
    Member
    Posted 1 year ago #

    Below is an example of the link not displaying correctly on Facebook:
    https://www.facebook.com/pages/Outdoor-Escapes/366574916766115

    There are two links on that page.

    The link that displays the Strava logo and a link description next to it is the result of me pasting either the full URL or shortlink of my post.

    The other link is posted via Publicize (shared a link via WordPress.com) and just displays the post title.

  3. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Could you try publishing a new post, to find out if the problem is linked to Publicize, or to a temporary Facebook cache issue?

    Thanks!

  4. nicktomkinson
    Member
    Posted 1 year ago #

    Hi Jeremy

    Thanks for the quick reply.

    I have just created and published a brand new post, the result can been seen by following the link below:
    https://www.facebook.com/pages/Outdoor-Escapes/366574916766115

    The link is still not displaying correctly on Facebook (no image and no description).

    I believe my topic may be similar to this one that has also been reported recently:
    http://wordpress.org/support/topic/featured-image-of-post-not-showing-up-when-publicized-to-facebook

  5. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Thank you. I noticed that you didn't add any image to this post. Could you try to publish a new post, and add a Featured Image to that post before to publish it?

  6. DanielNest
    Member
    Posted 1 year ago #

    Hi Jeremy,

    I can also confirm that this doesn't seem to be a caching issue with FB. Whenever sharing posts via any other ways the Featured Image displays correctly, it's only Publicize that doesn't seem to pull the right image (it does pull an image from inside the post though, instead of Featured Image)

    Daniel

  7. nicktomkinson
    Member
    Posted 1 year ago #

    Hi Jeremy

    My latest test post does contain a featured image, the GoPro logo is the feature image.

    Cheers

    Nick

  8. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    @Nick It seems that the image was not caught by Jetpack Open Graph tags. Could you leet me know how you added it to your post? Did you use the "Featured Image" module at the bottom right of the Edit Post area?

  9. nicktomkinson
    Member
    Posted 1 year ago #

    @Jeremy

    Yes, I did!

  10. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    @nicktomkinson @DanielNest Thank you both for your examples. I have passed them along to our developers, and we will investigate further. I will keep you updated!

  11. nicktomkinson
    Member
    Posted 1 year ago #

    @Jeremy Thanks! Looking forward to resolving this issue.

  12. sondon
    Member
    Posted 1 year ago #

    Looking forward to updates here.

  13. sanford neon
    Member
    Posted 1 year ago #

    same issue,, hatch w/ jetpack not publishing featured image or images in gallery in post... :)

  14. idoubtit
    Member
    Posted 1 year ago #

    Having an issue where link will show up in facebook with a featured image OK but if there is NO image, it will not pull the logo I have set to default using WP Facebook Open Graph protocol. It uses my facebook avatar instead (which is actually the same pic that comes up for wordpress so that may be what it's grabbing as well). I have it set to publish to a page, not my own wall, so this looks weird.

    This didn't happen with the older version.

    If I share the post directly to facebook, it picks up the correct image.

  15. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    The Publicize module does indeed use your Gravatar module if you haven't added any image to your post, nor defined a Featured image. Unfortunately, we cannot use the default image added by another plugin.

  16. ajkphotography
    Member
    Posted 1 year ago #

    Ahh thanks Jeremy I think you just answered a question I was going to ask.

    I manage a website for my wife who is also an admin of the site and I set Publicize up to post to her Facebook business Page. We couldn't understand why a photo of me was appearing with her posts shared on the page and now I understand it's coming from my Gravatar.

    Maybe there could be an option to use a default image when none are used in the post, rather like Yoast's Wordress Seo does.

    I suppose if I want to use Publicize reliably at the moment I shouldn't use the share with all accounts option and instead set my wife's account up linked with her own fb and Gravatar accounts. Even though she's using her own site account I guess it pulls the Gravatar image from the account (my account) that was originally used to connect to facebook?

  17. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    The Gravatar is pulled from the email address associated to the author of the post.

    Setting a Featured Image might be a better solution; this way, if some day you switch to a different theme that uses Featured Images, you won't have to go back and set a Featured Image for each one of your posts.

  18. ajkphotography
    Member
    Posted 1 year ago #

    Hmm ok I'm not sure what's happening then because my wife is the author of the posts but she has no Gravatar other than the default one set by wordpress so I'm not where it's pulling my photo from. I'll try using Featured Images but they're easy to forget.

  19. Alex Theberge
    Member
    Posted 1 year ago #

    Hello! The issue still exists with ?fb_source=pubv1 appending at the end of links on FB through WP publicize. This is quite annoying because the incorrect URL is carried over to other profiles/pages when shared. Then if you click the link from FB to my site and use the FB comment system it quickly proliferates the incorrect URL online. The kicker is that if the correct URL is shared it's treated like a whole new post on FB.

    Any word about a fix would be awesome.
    FB Example link: http://www.facebook.com/SweetXposure/posts/394110754020348
    Website:
    http://sweetxposure.com/dancing-with-the-realtors-2013/

  20. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    @alextheberge ?fb_source=pubv1 is indeed added by Jetpack Publicize, but it shouldn't cause any issues with the way Facebook treats your posts URLs.

    Facebook themselves allow you to add parameters to your app URLs (see fb_source for example), but it shouldn't cause any issue.

    These parameters can be useful because they allow you to track the sources of traffic on your site; you will be able to make a difference between people clicking on the Publicize links on your Facebook Page, and people clicking on user-generated links on their own profile.

    If you experience issues with Publicize links, could you give me more details?

  21. Alex Theberge
    Member
    Posted 1 year ago #

    It does cause issues for me.
    Is there a way to turn it off?

  22. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    You can't turn it off I'm afraid.

    Could you give me some details about your issues?

  23. Alex Theberge
    Member
    Posted 1 year ago #

    Okay Mr. Herve,

    If someone clicks on the URL appended with the ?fb_source=pubv1 addition then shortens the link to twitter, is twitter going to treat the link as a correct back-link to my site? OR will my site, more than likely, treat it as a different/seperate URL? The same applies to all other sites that share this appended version of my purposely specified URL.

    I will have to use another service until this is resolved. I don't want linters parsing info from the wrong URL unless you can tell me that the appended and normal URLs are treated interchangeably across all platforms and search engines?

    I specify a conical URL for a reason; this should be an optional addition. Will it be?

    Perhaps I can modify my .htaccess file to drop the added info. I'll post what I discover.

  24. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    You can indeed use .htaccess to redirect your users to the correct URL. Here is an example:
    http://stackoverflow.com/questions/14479931/remove-parts-of-url-using-htacess

    But the links will always work, even if you add parameters from Facebook (fb_source), or from Google and Feedburner (utm_source) for example.

  25. jcbecci
    Member
    Posted 1 year ago #

    I have a question related to this thread. When I "publicize" a link to FB, why when someone FB likes the link back on my WP site, doesn't that like then show up on my FB page? Is it because the URLs are different???

  26. Alex Theberge
    Member
    Posted 1 year ago #

    The URLs are different. The Facebook debugger sees that there is a difference if you setup open-graph correctly, but still treats the ?fb_source=pubv1 URL differently. Especially if that URL is shared to other social platforms, then it's a useless URL that breaks track-backs.
    Even though the additional garbage at the end of the URL displays the page correctly it's a huge caveat when people reshare from that URL to any other social platform. That ?fb_source=pubv1 becomes useless.

  27. jcbecci
    Member
    Posted 1 year ago #

    OK, thanks. In this case, any idea how a WP link that's liked from WP to FB can show liked on the FB too?

  28. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    When I "publicize" a link to FB, why when someone FB likes the link back on my WP site, doesn't that like then show up on my FB page? Is it because the URLs are different???

    In my tests, Liking a Publicize post on Facebook increments the Facebook Like counter in your post on your site.
    However, Liking a post on a site doesn't reflect on the number of Likes displayed under that post when you share it on Facebook. That's not related to Jetpack though, that's a common behaviour of the Like button.
    Try Liking a post with a lot of Likes, like a Mashable post for example. Now if you head over to your Facebook Page or profile, and share that URL, the Like count will be set to 0, although the post has been Liked hundreds of times already.

    I hope this helps.

  29. Alex Theberge
    Member
    Posted 1 year ago #

    Okay so here's what I found. This causes some other issues in wordpress queries, but I'm looking further into that. So far this is the best answer and I'm pleased with how it works. Word of caution, read the following post entirely first!


    Written by Brian Cray on March 18th, 2010

    "... query strings mess up things. On many social sharing sites, if I share http://briancray.com/ and someone else shares http://briancray.com/?query, the score will be attributed to two unique URLs instead of being recognized as the same URL."


    RewriteEngine On
    RewriteCond %{QUERY_STRING} !="" #if there is a query string
    RewriteCond %{QUERY_STRING} !^p=.* #wordpress users: allow post tempalinks
    RewriteCond %{REQUEST_URI} !^/wp-admin.* #wordpress users: don't break admin
    RewriteRule ^(.*)$ /$1? [R=301,L] #remove query string
    Hope this helps someone else!
    -Alex.

  30. Alex Theberge
    Member
    Posted 1 year ago #

    UPDATE!
    Here is an even easier alternative:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{QUERY_STRING} ^page=1$ #Checks for a query
    RewriteRule (.*) $1? [R=permanent] #removes it and makes a permanent redirect
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress,
    Cheers!
    -Alex

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic