Facebook分享视频不播放

kat*_*hir 6 android facebook ios cordova

我使用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);
  });
Run Code Online (Sandbox Code Playgroud)

我错过了什么?

Abr*_*hin 4

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

\n\n
    \n
  1. 第一行是 HTML head 标签的修改。无论是主动共享还是被动共享,您的页面都需要这样做。
  2. \n
  3. 第一个元标记(以粗体显示)是被动共享所必需的,因为您必须有一个 Facebook 应用程序才能进行被动共享,如被动应用程序设置中所述。
  4. \n
  5. 以斜体突出显示的是您必须提供给此模板的值。
  6. \n
\n\n

所以元标记代码就像

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

\xe2\x80\xa8\n

\n