• Resolved basdebruin

    (@basdebruin)


    Hi team

    When I auto publish to LinkedIn the featured image from my post is not visible in Linkedin. I have tested to just copy/paste the link to the LinkedIn post box (top of the feed) and what I see is:
    – using http://mydomain.nl/mypost – does show the image
    – using https://mydomain.nl/mynewpost – does NOT show the image

    You have to take care with testing because of the LinkedIn caching. If you first try the https variant, the http will not work afterwards. So, for every test I made a new local post.

    I am wondering if the plugin is posting the http or https address to LinkedIn, it looks like it is using the https variant as the image is not showing.

    Is there anything I can do to make the plugin post http (non secure) addresses to LinkedIn?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Make sure your redirect URL set in your LinkedIn application is the HTTP address as shown on the plugin settings page – regardless of whether you have an HTTPS website or not. Re-authenticate again. The plugin uses the image link provided from the standard WordPress function which gets the featured image of the post, this could be HTTP or HTTP depending on whatever your website uses. I have tested the plugin on HTTPS and HTTP and works fine.

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    For your reference the plugin uses the standard WordPress get_the_post_thumbnail function: https://developer.ww.wp.xz.cn/reference/functions/get_the_post_thumbnail_url/ which is whatever the featured image link happens to be, the plugin doesn’t muck around with this and set this to HTTP or HTTPS.

    Thread Starter basdebruin

    (@basdebruin)

    Hi there

    I understand. Did check the redirect URL and re-authenticated. I created two post (same content, different permalink). When I go to Linkedin and copy/past the http://mydomain.nl/mypost it previews fine (although without the image). When I use http://mydomain.nl/mypost it does not preview at all. I don’t say this is your plugin, because I am testing manually, I only want to know if you are using http or https if bots are available.

    Thanks

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    How can you create 2 posts with different permalink one with HTTP and one with HTTPS, and why are you doing this!? Your website is either HTTP or HTTPS; regardless the plugin works with both.

    I already answered the question you asked. I am finding it difficult to understand what you are saying and what you are trying to achieve. If you are using a local development server the images won’t work because LinkedIn can’t see images that are on your local network.

    Thread Starter basdebruin

    (@basdebruin)

    I am not using a local development server. The reason I am testing is that I found out LinkedIn does not like when I post a https link from my site. I am testing this by copy / pasting such a link in the post box, and LinkedIn will show me “Cannot display preview. You can post as is, or try another link.” Looks like LinkedIn does not like my SSL certificate.

    However, if I do the same with a http link, the preview is loaded (sometimes with and sometimes without an image). Therefore I am wondering what the plugin uses to post to LinkedIn (http or https).

    I don’t have a glue why sometimes I see an image on LinkedIn and sometimes not, do you have any idea why this can happen?

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

The topic ‘Image nit showing: post to LinkedIn using http or https address’ is closed to new replies.