Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook sharing video not playing

i am using codova 2.9.0. i give option to sharing video and image in facebook via cordova facebook connect plugin. Shared successfully. but when i click video in facebook page i got this error

Sorry, the application you were using is misconfigured. Please try again later.

and it have two buttons Go Home and Find Another App

this is my code:

 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);
  });

what i missing?

like image 800
kathir Avatar asked Apr 15 '14 07:04

kathir


1 Answers

I have found the solution Here What you need to do is

  1. The first line is a modification of the HTML head tag. This is required in your page for either active or passive sharing.
  2. The first meta tag, shown in bold, is required for passive sharing, because you must have a Facebook app for passive sharing, as detailed in Passive App Setup.
  3. Highlighted in italics are values that you must supply to this template.

So meta tag code will be like

<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" />

like image 186
Abrar Jahin Avatar answered Oct 03 '22 10:10

Abrar Jahin