06-25-2019 09:34 AM
06-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?
06-25-2019 09:41 AM
BTW: I know this is off topic, but it would be nice if this forum:
08-15-2019 11:48 AM
I'm still having problems with this. As an example, if I post this URL in MS Teams:
09-06-2019 06:24 AM - edited 09-06-2019 06:24 AM
Exactly the same issue, no preview in Link Web part
What's the trick?
09-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.
09-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.