在linkedin上打开图形图像问题 [英] Open Graph image issue on linkedin

查看:246
本文介绍了在linkedin上打开图形图像问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在关于linkedin共享的项目存在问题。图像(缩略图)没有显示出来。

Im having issues with my project right now regarding linkedin share. The image(thumbnail) doesnt showed up.

我的问题是,网址更改是否也会影响?

My question is, does the url change could also affect?

例如我添加了og标签这个:
https:// domain_name.com/wp-content/uploads/2016/10/2_About-Team-Photo_New-1.jpg

For example i added the og tags like this: https://domain_name.com/wp-content/uploads/2016/10/2_About-Team-Photo_New-1.jpg

但是当我打开源代码时该网址更改为:
https://d2gkdq5vdbd74s.cloudfront.net/wp-content/uploads/2016/10/2_About-Team-Photo_New-1.jpg

but when i open up the source code the url was change to: https://d2gkdq5vdbd74s.cloudfront.net/wp-content/uploads/2016/10/2_About-Team-Photo_New-1.jpg

这种变化会影响Linkedin股票吗?

Does this change affect the Linkedin Share?

顺便说一句,Facebook股票没有任何问题。

By the way the facebook share has no issues at all.

请帮帮我。谢谢。

Reggards,
gbl

Reggards, gbl

推荐答案

我的预感是您的页面在其标签上没有Open Graph前缀。

My hunch is that your page doesn't have the Open Graph prefix on its or tag.

<html lang="en-US" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#">

我相信我曾经认为这是LinkedIn股票的一个问题。至于URL更改,这不应该影响它。我相信我过去已成功使用来自不同域的图像用于Open Graph。您是否启用了可能将资产同步到CloudFront或S3的插件?这可能是原因造成的。

I believe I've come across that as an issue with LinkedIn shares in the past. As for the URL change, that shouldn't impact it. I believe I've used images from different domains successfully in the past for Open Graph. Do you have a plugin enabled that might be syncing your assets to CloudFront or S3? That might be the cause of that.

我曾经写过一个插件,这可能会让你省去所有这些麻烦 - 它全面而智能地添加了所有的OG需要的标签,包括前缀,并允许您根据需要每页或全局自定义数据(如果您是开发人员,您可以使用一些内置过滤器以编程方式执行此操作。它还缺少令人困惑的配置和膨胀其他'做所有'插件,这是我建立它的主要原因之一。你应该看看:

I wrote a plugin a while back that might save you some hassle with all of this -- it comprehensively and intelligently adds all of OG tags needed, including the prefix, and allows you to customize that data as you need per page or globally (if you're a developer, you can do this all programmatically with some built-in filters. It also lacks the confusing configuration and bloat of other 'do it all' plugins, which is one of the main reasons I built it. You should check out:

https://wordpress.org/plugins/complete-open-graph/

这篇关于在linkedin上打开图形图像问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆