Where does HipChat get images for inline URL preview?

Whenever someone post a link, (e.g. http://www.apple.com/) an inline preview is displayed, usually with the company logo for the website. However, when we post one of our company's URLs the the image that is displayed is one that we use for an error page and is not normally seen when the URL is accessed.

 

I'd like to know how HipChat chooses what image to use, so that we could adjust our code.

1 answer

0 vote

@Dmitry Zotman Good question! There are multiple different parsers involved to retrieve the meta information that's being used to display a card. Everything from looking at the opengraph meta tags, site specific parsers that query the service API (like Twitter), towards falling back to generic html parsing.

To debug the issue with your specific site, you might wanna try the following urls to debug things:

http://open.iframe.ly/api/iframely?url=http://www.google.com&origin=yo

https://developers.facebook.com/tools/debug/

Is it possible your site is protected and you just happen to have an active session/cookie that allows you seeing the actual content when hitting it with your browser?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

122 views 3 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you