簡體   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