Facebook videos

I am using codova 2.9.0. I provide the ability to share videos and images on facebook through the facebook connect cordova plugin. Jointly successful. but when i click the video on facebook page i got this error

Sorry, the application you used is not configured correctly. Please try again later.

and it has two buttons Go to home and Find another application

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 am I missing?

+6
source share
1 answer

I found a solution here. What you need to do is

  • The first line is the modification of the HTML header tag. This is necessary on your page for active or passive exchange.
  • The first meta tag in bold is required for passive sharing because you must have a Facebook app for passive sharing, as described in the Passive app.
  • Italicized are the values ​​that you must provide to this pattern.

So the meta tag code will look 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" /> 

+4
source

All Articles