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.
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.
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
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.
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?