简体   繁体   English

复制粘贴链接到Facebook发布不显示缩略图

[英]Copy Paste Link To Facebook Post Not Showing Thumbnail Image

I have a specific requirement in a project like count the user click rate on the posted link over social networking site (for now facebook.com only) and the count should store in my website database. 我在一个项目中有一个具体要求,例如计算社交网站上发布的链接上的用户点击率(仅适用于现在的facebook.com),并且该计数应存储在我的网站数据库中。 The actions are - 1- I have generated the URL (redirect url to my website, when users click on the image) like this - 动作是-1-我已经生成了网址(当用户点击图片时,将网址重定向到我的网站)-

eg - Redirect URL - http://splitmedia.in/receive?partnerLinkHash=xdZ2iOSv07rS-cN&userReferenceHash=bN19UFgRVdRS8JqkqAiu4WpCPoXEbJRYrsUowNIK-9XYfC4O-yzxY_HHoS1_2qIetWSpoQIs0hw 例如-重定向URL- http ://splitmedia.in/receive?partnerLinkHash=xdZ2iOSv07rS- cN&userReferenceHash= bN19UFgRVdRS8JqkqAiu4WpCPoXEbJRYrsUowNIK-9XYfC4O- yzxY_HHoS1_2qIwWSpoQIs0

where partnerLinkHash & userReferenceHash is unique hash code generated for the user and link. 其中partnerLinkHash和userReferenceHash是为用户和链接生成的唯一哈希码。

and the image thumbnail link which should show while posting to facebook like - 和在发布到Facebook时应显示的图像缩略图链接,例如-

Image URL - https://bookmein.in/myAssets/images/xexp400.jpg.pagespeed.ic.6Ww3IaWPD9.jpg 图片网址-https: //bookmein.in/myAssets/images/xexp400.jpg.pagespeed.ic.6Ww3IaWPD9.jpg

Now When I post the redirect url to my facebook, the image url thumbnail should show and when click on this thumbnail it should redirect to the redirect url. 现在,当我将重定向URL发布到我的Facebook时,应该显示图像URL缩略图,并且在单击此缩略图时应将其重定向到重定向URL。 I tried this, but it could not work for me example copy and paste this following link on facebook, it does not work - 我尝试了此操作,但它对我来说不起作用,例如,将以下链接复制并粘贴到facebook上,它不起作用-

< link rel='shortlink' href='RedirectUrl' src='Image Url'/ >

You have to user og-graph meta tag and then update the facebook image cache. 您必须使用og-graph meta标签,然后更新facebook图像缓存。 To update it cache you have to go on facebook debug site and paste the url there. 要更新它的缓存,您必须进入Facebook调试站点并将URL粘贴到那里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM