Showing posts with label facebook. Show all posts
Showing posts with label facebook. Show all posts

Wednesday, April 5, 2017

[Facebook][Resolved] Set facebook video with width 100% (data-width="100%" not work)

What i wanted to do is set the pixel width of the facebook video as 100% , i used data-width="100%" but it display nothing. If i set data-width="100px", the video would be available to be played. So i guess the value 100% is not available for the attribute data-width.

Example with problem

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/zh_TW/sdk.js#xfbml=1&version=v2.8";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div data-href="https://www.facebook.com/fbstart/videos/1305528069537541" class="fb-video" data-allowfullscreen="true" data-width="100%"></div>
To display the facebook video with 100% width. By referenced from at stackoverflow i changed the syntax data-width="100%" to data-adapt-container-width="true" and it work like a charm:

Amended example

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/zh_TW/sdk.js#xfbml=1&version=v2.8";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div data-href="https://www.facebook.com/fbstart/videos/1305528069537541" class="fb-video" data-allowfullscreen="true" data-adapt-container-width="true"></div>

Reference

http://stackoverflow.com/questions/29429296/responsive-width-facebook-page-plugin
https://developers.facebook.com/docs/plugins/embedded-video-player

Wednesday, July 17, 2013

定期刪除facebook 帳戶內應用程式

有一天,我開facebook 的應用程式設定,
發現我曾登記的應用程式共有93個,
但是,我是那些不玩遊戲的人,
那是.....甚麼呢?

原來....
是一大堆心理測驗,
明明當年我只是按看結果的button 而已...
刪去了60多個,先capturn 一張圖 :

如何按這一頁出來 ?
( 2013年7月18日版本 )
facebook 右上角有個"鎖"的樣子的button, 
按了之後選「顯示更多設定」,
去了新的頁面後在左面的選單按應用程式,
就會看到的了~

而按了你應用程式的名字,
你會看到那應用程式有甚麼權限 :



例如這個「每日占一占」,
能夠
「存取你的個人資料」
「送電子郵件給你」
「允許代表你發帖子」

...........
允許代表你發帖子!!!!!

我也的確曾見過這個應用程式在我wall 上發帖子,
而刪了它,
理論上不會再有這種事的了

看了這篇文,
建議看看你facebook 帳戶內有多少應用程式~?
應該會有驚喜吧
XD