Custom video player on Facebook wall

旧时模样 提交于 2019-12-04 14:48:13

问题


I want to allow my page users to embed my own video player (Flash) on his Facebook walls. In this page in head I have:

<meta property="og:title" content="[Page Title]" />
<meta property="og:type" content="movie" />
<meta property="og:url" content="[page url]" />
<meta property="og:image" content="[url to jpg file]" />
<meta property="og:site_name" content="[site name]" />
<meta property="fb:app_id" content="[my facebook id]" />
<meta property="og:video:height" content="640" />
<meta property="og:video:width" content="385" />
<meta property="og:video" content="[url to swf] " />
<meta property="og:video:type" content="application/x-shockwave-flash" />

When I'm logged in to my old Facebook account, post a link to this page and click them, I don't get my player, but I'm redirected to my page. This same hapened in my friends' accounts.

The player work good only when I'm loged in to new account created for tests.

How do I fix this?


回答1:


You need one more metatag and that is og:video:secure_url. This problem is happening with users that are trying to view the video from a secure page. Check to see if the 2 accounts from where is not working have enabled Secure Browsing in Account Settings -> Security.



来源:https://stackoverflow.com/questions/9113297/custom-video-player-on-facebook-wall

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!