北美网备份站

标题: 如何将facebook 视频添加到帖子/博客里 [打印本页]

作者: 北美生活网    时间: 2017-2-3 04:46
标题: 如何将facebook 视频添加到帖子/博客里



Step-by-Step

1. Choose URL or Page

Pick the URL of a Facebook video you want to embed.

2. Code Configurator

Paste the URL to the Code Configurator and click the "Get Code" button to generate your embedded video player code.

3. Copy & Paste HTML snippet

Copy and paste the snippet into the HTML of the destination website.


作者: 北美生活网    时间: 2017-2-3 04:49
比如 视频链接:5 A  o" n, Z5 |

/ Z+ ]& [. N) e+ Ghttps://www.facebook.com/gravelmatin/videos/1852964928250096/
# i& b$ F9 m5 f' l1 a% S' P* M: |: m, A; J% H5 L
1:输入到:6 q. z1 n# l, v8 u' ?3 @1 k5 I2 l
% C* @- c# i8 X
https://developers.facebook.com/docs/plugins/embedded-video-player#configurator
5 r* T4 B* z$ m7 x6 m. q8 n' j  V
9 a8 g4 y/ C' {' e2:点击:“get code”:
* Q' n# |3 g4 E8 v7 X0 D4 X. l& ~; ~, H
Step 2: Include the https://developers.facebook.com/docs/reference/javascript/ on your page once, ideally right after the opening <body> tag.
3 D/ k: u3 M2 X, b
6 A2 q, N& q' C+ s7 r

2 A/ z$ {. H7 r3 T. j/ U7 p) p0 ^
  1. <div id="fb-root"></div>
    0 a( M' R4 V' G* C6 ]* a9 G9 [
  2. <script>(function(d, s, id) {
    ( P8 y) d$ a- X# ~
  3.   var js, fjs = d.getElementsByTagName(s)[0];  |+ Y( Y0 H& b( [3 i
  4.   if (d.getElementById(id)) return;
    - _4 ^( v2 l# y8 P5 [$ ]
  5.   js = d.createElement(s); js.id = id;3 P0 a8 h, a' w5 C; G
  6.   js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";
    ! x& S+ d5 X; L* y: |
  7.   fjs.parentNode.insertBefore(js, fjs);) ]) n( G2 U5 N4 j
  8. }(document, 'script', 'facebook-jssdk'));</script>
复制代码
, _1 N1 K; G: R0 J
: p8 u+ A$ R* S: M
Step 3: Place this code wherever you want the plugin to appear on your page.
: A# Q3 R$ x9 n, L8 @- ^* Y) l2 r; N: I9 Y2 Z0 h) G) n! \

8 {9 z& s0 m6 [- _% s* y
4 O. c9 W' H' c) e
8 X7 ^  t$ P8 p, B
  1. <div class="fb-video" data-href="https://www.facebook.com/gravelmatin/videos/1852964928250096/" data-width="500" data-show-text="false"><blockquote cite="https://www.facebook.com/gravelmatin/videos/1852964928250096/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/gravelmatin/videos/1852964928250096/">Le Montréalais Andrei Zlotchevski à la 15e compétition du Pont...</a><p>Oui, le champion du monde de chinois langue seconde est Montréalais! Hugo Lavoie vous présente Andrei Zlotchevski -» http://bit.ly/2kR431d/ G% D; Q7 C6 Y3 [

  2. * P+ N0 d, A" q; b" t& C3 o
  3. Le voici ici, à la 15e compétition du Pont chinois, à Pékin.</p>Posted by <a href="https://www.facebook.com/gravelmatin/">Gravel le matin</a> on Wednesday, February 1, 2017</blockquote></div>
复制代码

/ X5 x) e$ Z* l8 G. L3 q' o: x, j  P7 ]0 V0 v, ~+ T1 b7 [

( w% B# t9 n/ e( P3 J1 x5 ~7 [* h% ^) p





欢迎光临 北美网备份站 (http://beimeilife.duckdns.org/) Powered by Discuz! X3.2