Facebook墙上的自定义视频播放器 [英] Custom video player on Facebook wall

查看:148
本文介绍了Facebook墙上的自定义视频播放器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让我的网页用户在我的Facebook墙上嵌入自己的视频播放器(Flash)。在这个页面中,我有:

 < meta property =og:titlecontent =[Page Title] /> 
< meta property =og:typecontent =movie/>
< meta property =og:urlcontent =[page url]/>
< meta property =og:site_namecontent =[site name]/>
< meta property =fb:app_idcontent =[my facebook id]/>
< meta property =og:video:heightcontent =640/>
< meta property =og:video:widthcontent =385/>
< meta property =og:videocontent =[url to swf]/>
< meta property =og:video:typecontent =application / x-shockwave-flash/>

当我登录到我的旧Facebook帐户时,发布一个链接到这个页面并点击它们,我没有得到我的球员,但我被重定向到我的页面。在我的朋友的帐户中也有同样的情况。



只有当我登录到为测试而创建的新帐户时,

我该如何解决这个问题?

解决方案

你需要一个元标记,那就是 og:video:secure_url 。试图从安全页面查看视频的用户正在发生此问题。检查从哪里不工作的2个帐户已启用安全浏览在帐户设置 - >安全。


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?

解决方案

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.

这篇关于Facebook墙上的自定义视频播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆