Jump to content

Help please - How to get slack to pickup meta image

Recommended Posts

Posted

Hello, 

I need my meta image to be a dynamic link as it will change daily. I've got this working on AWS lambda, but when I use code inject and update the og:image, slack doesn't pick it up and will not post the image to slack at all. 

I have even tried hardcoding an image link and slack will not pick it up. 

Example of my hardcoded meta image data:

<meta property="og:image" content="https://imgur.com/FxF31ba" />

and the logs from slacks unfurl debugger:

Request to fetch https://cyan-aardvark-7kb7.squarespace.com/boards/index returned HTTP 206
Type of resource is text or HTML
Found data in meta tags
 
Please help, I'm going crazy!
  • Replies 4
  • Views 115
  • Created
  • Last Reply

Top Posters In This Topic

Posted
3 minutes ago, Reallyher said:
https://imgur.com/FxF31ba

This is a webpage not an image. If you want to pull from that location, then try this link:

<meta property="og:image" content="https://i.imgur.com/FxF31ba.png" />

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted (edited)

 

4 minutes ago, Ziggy said:

This is a webpage not an image. If you want to pull from that location, then try this link:

<meta property="og:image" content="https://i.imgur.com/FxF31ba.png" />

 

ah yes my bad sorry. I have definitely attempted with the direct image URL and get the same outcome

Edited by Reallyher
Posted
1 hour ago, Reallyher said:

ah yes my bad sorry. I have definitely attempted with the direct image URL and get the same outcome

Darn, I hoped I had spotted a simple solution! This is generally muddy as a problem and linked heavily to cache so can be really difficult to get an image to pull through correctly and even worse to try and replace. I don't believe that Slack has a tool for scraping posts, but LinkedIn does:

https://www.linkedin.com/post-inspector/

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.