比如 视频链接:
4 c0 r' B& I& f) I0 g: N8 B# b1 u3 A9 r8 V. u+ ?0 K
https://www.facebook.com/gravelmatin/videos/1852964928250096/9 W8 A$ ^1 L/ d! h
% |4 u9 t' a- \ e0 K
1:输入到:
5 V0 s" W9 c; A" B0 ^3 _8 W) u- u' |1 r
https://developers.facebook.com/docs/plugins/embedded-video-player#configurator
# e4 O. j4 z$ V+ {
* B6 ^7 O Y3 j# B. d" J* [5 `2:点击:“get code”:
0 D E1 R+ F. P; O, v3 Q" [7 b$ S4 H @: `3 H* M I8 l$ d& k
Step 2: Include the https://developers.facebook.com/docs/reference/javascript/ on your page once, ideally right after the opening <body> tag.9 e, c2 a$ d( s& I, B. p; H
3 t8 a! k# U/ V. `# ?! S) u$ {: T0 e' W8 u6 f8 g9 @* \
- <div id="fb-root"></div>6 F* M% K6 E( F% m2 `; X$ {
- <script>(function(d, s, id) {
, v( [! D2 ]; W" W$ O - var js, fjs = d.getElementsByTagName(s)[0];
4 v/ |9 Z6 T4 U& h - if (d.getElementById(id)) return;- }+ ]0 g. F+ k8 c, [ o
- js = d.createElement(s); js.id = id;
* S, e+ o4 _# C( m, g+ P, D+ \4 o - js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";; Q; k% l. M- h, g V' ~9 X- d; [0 {5 {
- fjs.parentNode.insertBefore(js, fjs);/ L& C# _4 f* S3 v, S8 M4 u
- }(document, 'script', 'facebook-jssdk'));</script>
复制代码
% D' Q8 t* Q g8 L2 e
" D* \ v7 K; z# D( _Step 3: Place this code wherever you want the plugin to appear on your page.
' V3 V5 z7 W. Y8 Z3 T% n, E+ d/ f" i' [/ h
$ X; I2 F) o" Z, b v& p$ d
$ E5 L/ Y4 D7 t( Z* u4 W. x7 \3 ~
+ @( H) C- R+ w
- <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# S [' F. r9 R C7 ]
- 7 o9 a7 t) e& ~5 ]
- 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>
复制代码
8 j# U0 _9 R" g* q8 z2 V5 ?# t* t0 ]# u$ ]
1 f- Y, K4 r0 o6 c: b- V0 P
- `7 Q2 n9 ^' n: E) E: T9 j( Q: g! I |