Jun 25 2019 09:34 AM
Jun 25 2019 09:34 AM
Here is the code for a trivial Web Page I am hosting in IIS on a Non-SharePoint machine:
<!-- Saw this in the source at https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/Files-restore-for-SharePoint-and-Mi... -->
<html prefix="og: http://ogp.me/ns#" dir="ltr" lang="en" class="no-js">
<title>Testing URL Preview 2</title>
<!-- Saw these meta tags on CodeShow a long time ago
<meta name="keywords" content="URL Preview Test Two" />
<meta name="description" content="Trying to figure out why URL Preview works inconsistently." />
<meta name="author" content="Shawn Eary" />
<meta name="dateCreated" content="06/25/2019" />
<meta name="copyright" content="(c) ©2019 - University of Arkansas (Test Site)" />
<!-- https://blog.0day.rocks/link-previews-in-im-apps-and-privacy-d32e6056095b -->
<meta property='og:title' content='URL Preview Test Three' />
<meta property='og:site_name' content='Test' />
<meta property='og:image' content="https://brand.uark.edu/_resources/images/downloads/facebook-images/RS47083_FacebookCovers15.jpg" />
<meta property='og:type' content="article" />
<meta property="og:description" content="Why doesn't URL Preview Work consistently?" />
This is a test page.
When I the type the URL for that Web Page into a Link WebPart on SharePoint Online, I get this "error":
"There's no preview available for this link."
What do I need to change in the above code, to get the Link Web Part of SharePoint Online to display a preview?
Jun 25 2019 09:41 AM
BTW: I know this is off topic, but it would be nice if this forum:
Aug 15 2019 11:48 AM
I'm still having problems with this. As an example, if I post this URL in MS Teams:
Sep 06 2019 06:24 AM - edited Sep 06 2019 06:24 AM
Exactly the same issue, no preview in Link Web part
What's the trick?
Sep 10 2019 06:30 AM
@Norman Young- The Link WebPart is working for all of the links you just mentioned but it still doesn't work on our SharePoint Online site for these URLs:
It should be noted that all of these URLs generate at least some part of a Preview in our instance of MS Teams.
Sep 10 2019 07:03 AM
@Norman Young- Yes, I'm getting odd behavior. The previews for all of those links are partially working for me now also IF I don't type a space after URL. For some reasons, if I type in a space after the URL on each of those links, I get a "There's not preview available for the link." message.
This isn't serious since the workaround is to simply not put in a space at the end of the URL, but even when I don't put a space at the end of the URL, I still only get a limited quality preview.
For example in SharePoint with the Link Preview web part I get this limited preview:
but in MS Teams, I get this much richer preview:
So I have two oddities. The first is not serious since there is an easy workaround (just don't put a space at the end of the URL), the second is a little disappointing because the SharePoint Preview seems to be of a lower quality than the MS Teams preview. The second problem is not necessarily restricted to https://www.uark.edu . There are other URLs that also seems to display in "full" preview for me in MS Teams but "limited" preview for me in the SharePoint Link WebPart.
Feb 24 2021 09:20 AM
I'm having the same issue in my SharePoint link doesn't display a preview.
I tested with my URL's and with the global cycling/ Ark.edu sites but still get unable to preview.
There are no spaces at the end so that doesn't seem to be it.
All show previews when I post them in Teams.
Is it possible that its a site setting ? (I'm new to SharePoint so just throwing out ideas).
Feb 24 2021 09:52 AM
@El-destructo I know this sounds ridiculous, but now maybe you should try purposefully putting spaces at the end of your URL. The point is that IMO the ability of Microsoft Tools to adequately generate Link Previews across various products seem to be related to:
I know this all sounds very stupid, but I've had problems with URL previews in more than one Microsoft product, and in general, the feature feels very "buggy". It doesn't seem to work consistently in numerous Microsoft tools. With that said, seems MS Teams Desktop client and Outlook Web Access (also Outlook.com) are more reliable at generating link previews than some of the other tools. My personal experience for example is that the built in Windows 10 20H2 Mail client seems to be highly unreliable for generating URL previews but maybe I just have a "slow" computer ...
Yes, I know this is about SharePoint, but seriously, I have had notable problems with Microsoft products generating link previews.
OFF Topic: Another thing that really annoys me is that when I create a LinkedIn (owned by Microsoft) or SharePoint Post with an image, a lot of the times, both products seem to pick arbitrary sections of my thumbnail image despite the panning and cropping settings I have chosen elsewhere. I don't have time to correctly document this now, but it's highly annoying, because I've had SharePoint and LinkedIn do stupid stuff like cut people's heads off or remove "critical" parts of my thumbnails despite panning and image resizing attempts.
 - You would think two Xeon X5675's with 48 GB of RAM would be fast enough but apparently not. Maybe it's my 7200 RPM Mechanical HDs slowing everything down...
Feb 25 2021 02:48 AM
Sadly adding a variety of space, / ,tab etc isn't doing anything.
Very annoying that you can't edit a link after creating but need to create a new one every time.
Also tried in chrome/edge/firefox .
My laptop is no slouch so resource usage is fine. Just seems to be a bug that 18+ months later still hasn't been addressed.