点标签看更多好帖
开启左侧

如何将facebook 视频添加到帖子/博客里

[复制链接] 1
回复
1227
查看
打印 上一主题 下一主题
楼主
跳转到指定楼层
发表于 2017-2-3 04:46 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?注册

x



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.



转载请保留当前帖子的链接:https://www.beimeilife.com/thread-42349-1-1.html 谢谢
沙发
发表于 2017-2-3 04:49 | 只看该作者
比如 视频链接:$ t7 Z- K% }8 L; `6 T/ D
5 a6 D3 s% P1 o0 B* v2 E( l
https://www.facebook.com/gravelmatin/videos/1852964928250096/1 L, f) n% M% K1 l7 c$ U$ E/ |
9 c5 k* j. J0 T) C8 x' M8 q
1:输入到:0 K, N% m, o4 f; i+ z  K/ Y+ t

! k# K$ q) T0 l, Uhttps://developers.facebook.com/docs/plugins/embedded-video-player#configurator1 H, s1 X8 V: C
$ C/ h& T2 Z5 i+ d& K6 w. o
2:点击:“get code”:
% I3 j  g% b! C3 b. O* `$ y
( N7 E# i2 g2 J5 m+ r0 Z8 q3 f  cStep 2: Include the https://developers.facebook.com/docs/reference/javascript/ on your page once, ideally right after the opening <body> tag.
, y/ G! g; G+ l/ b5 b5 O* R3 x5 X
; B- @! P" Y& ]% i1 j# P

. `8 e5 a8 U5 e# ~. g
  1. <div id="fb-root"></div>8 C) T# u) N; y- R1 T& q
  2. <script>(function(d, s, id) {
    ' c; p; b3 h8 @6 H
  3.   var js, fjs = d.getElementsByTagName(s)[0];
    7 J  ?8 z1 h) {/ m- H+ S0 H, {3 ]
  4.   if (d.getElementById(id)) return;  G2 ?: q8 Q, p' t: M8 z5 t. |
  5.   js = d.createElement(s); js.id = id;
    7 |" p+ d; O$ L* k1 ^; u4 G1 |+ _2 u
  6.   js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";
    2 N# B. m% B+ H. [. R" `
  7.   fjs.parentNode.insertBefore(js, fjs);
    2 @; ]; G/ v# [3 v9 `8 P& Y
  8. }(document, 'script', 'facebook-jssdk'));</script>
复制代码

& }! b& d+ J! h
# ^( x1 A' W/ M/ U1 iStep 3: Place this code wherever you want the plugin to appear on your page.6 c8 f9 B1 U% \9 X9 x$ \: ?, o
1 j. D3 X- |' F( b
5 _. Y/ ?; d, ?) W1 o

* o2 ]- u& k; N
/ T; a/ o! l2 x4 b' V+ m( X
  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# r- H4 O& @! K% U
  2. 3 }9 o$ D& ]! ]% B. c3 Y
  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>
复制代码

4 `; [3 @8 O8 O5 a4 v) L
6 Y# p/ s; g6 n: W9 z% F) a7 E1 Z) a' q) W) g1 d( y

, _# A1 Y) W. K% L1 \" m

使用高级回帖 (可批量传图、插入视频等)快速回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则   Ctrl + Enter 快速发布  

发帖时请遵守我国法律,网站会将有关你发帖内容、时间以及发帖IP地址等记录保留,只要接到合法请求,即会将信息提供给有关政府机构。
快速回复 返回顶部 返回列表