kat*_*hir 6 android facebook ios cordova
我使用codova 2.9.0.我通过cordova facebook connect插件提供在Facebook上分享视频和图像的选项.成功共享.但是当我在Facebook页面点击视频中,我得到这个错误
很抱歉,您使用的应用程序配置错误.请稍后再试.
它有两个按钮Go Home和Find 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)
我错过了什么?
我在这里找到了解决方案\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" />\nRun Code Online (Sandbox Code Playgroud)\n\n\xe2\x80\xa8\n
\n| 归档时间: |
|
| 查看次数: |
323 次 |
| 最近记录: |