mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 08:03:40 +08:00
331236d6d7
* FEATURE: display error if Oneboxing fails due to HTTP error - display warning if onebox URL is unresolvable - display warning if attributes are missing * FEATURE: Use new Instagram oEmbed endpoint if access token is configured Instagram requires an Access Token to access their oEmbed endpoint. The requirements (from https://developers.facebook.com/docs/instagram/oembed/) are as follows: - a Facebook Developer account, which you can create at developers.facebook.com - a registered Facebook app - the oEmbed Product added to the app - an Access Token - The Facebook app must be in Live Mode The generated Access Token, once added to SiteSetting.facebook_app_access_token, will be passed to onebox. Onebox can then use this token to access the oEmbed endpoint to generate a onebox for Instagram. * DEV: update user agent string * DEV: don’t do HEAD requests against news.yahoo.com * DEV: Bump onebox version from 2.1.5 to 2.1.6 * DEV: Avoid re-reading templates * DEV: Tweaks to onebox mustache templates * DEV: simplified error message for missing onebox data * Apply suggestions from code review Co-authored-by: Gerhard Schlager <mail@gerhard-schlager.at>
31 lines
1.6 KiB
Plaintext
31 lines
1.6 KiB
Plaintext
<!doctype html>
|
|
<html lang="en">
|
|
<head prefix="og: http://ogp.me/ns# video: http://ogp.me/ns/video#">
|
|
<meta charset="utf-8">
|
|
<title>Arrival of a Train at La Ciotat</title>
|
|
<meta property="og:title" content="Arrival of a Train at La Ciotat">
|
|
<meta property="og:site_name" content="Open Graph protocol examples">
|
|
<meta property="og:type" content="video.movie">
|
|
<meta property="og:locale" content="en_US">
|
|
<meta property="og:url" content="http://examples.opengraphprotocol.us/video-movie.html">
|
|
<meta property="og:image" content="http://examples.opengraphprotocol.us/media/images/train.jpg">
|
|
<meta property="og:image:secure_url" content="https://d72cgtgi6hvvl.cloudfront.net/media/images/train.jpg">
|
|
<meta property="og:image:width" content="500">
|
|
<meta property="og:image:height" content="328">
|
|
<meta property="og:image:type" content="image/jpeg">
|
|
<meta property="og:video" content="http://examples.opengraphprotocol.us/media/video/train.mp4">
|
|
<meta property="og:video:secure_url" content="https://d72cgtgi6hvvl.cloudfront.net/media/video/train.mp4">
|
|
<meta property="og:video:type" content="video/mp4">
|
|
<meta property="og:video:width" content="472">
|
|
<meta property="og:video:height" content="296">
|
|
<meta property="video:release_date" content="1895-12-28">
|
|
<meta property="video:director" content="http://examples.opengraphprotocol.us/profile.html">
|
|
<meta property="video:duration" content="50">
|
|
<meta property="video:tag" content="La Ciotat">
|
|
<meta property="video:tag" content="train">
|
|
</head>
|
|
<body>
|
|
<p>A <a href="http://ogp.me/#type_video.movie">video.movie</a> object.</p>
|
|
</body>
|
|
</html>
|