简体   繁体   中英

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. The actions are - 1- I have generated the URL (redirect url to my website, when users click on the image) like this -

eg - Redirect URL - http://splitmedia.in/receive?partnerLinkHash=xdZ2iOSv07rS-cN&userReferenceHash=bN19UFgRVdRS8JqkqAiu4WpCPoXEbJRYrsUowNIK-9XYfC4O-yzxY_HHoS1_2qIetWSpoQIs0hw

where partnerLinkHash & userReferenceHash is unique hash code generated for the user and link.

and the image thumbnail link which should show while posting to facebook like -

Image URL - 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. I tried this, but it could not work for me example copy and paste this following link on facebook, it does not work -

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

You have to user og-graph meta tag and then update the facebook image cache. To update it cache you have to go on facebook debug site and paste the url there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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