繁体   English   中英

Facebook分享视频不播放

[英]facebook sharing video not playing

我正在使用codova 2.9.0。 我通过cordova facebook connect插件提供在Facebook上分享视频和图像的选项。 共享成功。 但是当我在Facebook页面点击视频时,我收到了这个错误

抱歉,您使用的应用程序配置错误。 请稍后再试。

它有两个按钮Go HomeFind Another App

这是我的代码:

 FB.ui({
    method: 'feed',
    name: '',
    caption: '',
    description: des,
    link: 'http://apps.facebook.com/mobile-start/',
   source: postimage,
   picture: url,
    actions: [{ name: 'Get Started', link: 'http://apps.facebook.com/mobile-start/' }],
  }, 
  function(response) {
    console.log('publishStory UI response: ', response);
  });

我错过了什么?

我在这里找到了解决方案你需要做的是

  1. 第一行是HTML头标记的修改。 您的页面中需要主动或被动共享。
  2. 第一个元标记(以粗体显示)是被动共享所必需的,因为您必须拥有一个用于被动共享的Facebook应用程序,如被动应用程序设置中所述。
  3. 斜体突出显示您必须提供给此模板的值。

因此元标记代码就像

<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# video: http://ogp.me/ns/video#">
<!-- The following tag is required for passive sharing -->
<meta property="fb:app_id" content="yourFacebookAppIdHere" />
<meta property="og:type" content="video.other" /> 
<meta property="og:title" content="yourTitleHere" />
<meta property="og:description" content="yourDescriptionHere" />
<meta property="og:url" content="yourURLwithTheEmbeddedVideo">
<meta property="og:image" content="yourImageUrlHere"/>
<meta property="og:video" content="yourUrlHere" />
<meta property="og:video:secure_url" content="yourSecureUrlHere" />
<meta property="og:video" content="http://player.ooyala.com/player.swf?embedCode=YourOoyalaEmbedCodeHere&keepEmbedCode=true" />
<meta property="og:video:secure_url” content="https://player.ooyala.com/player.swf?embedCode=YourOoyalaEmbedCodeHere&keepEmbedCode=true" />
<meta property="og:video:type" content="application/x-shockwave-flash" />

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM