我试图将动作“观看”发布到对象“视频”
收到此错误:
Error occured
Type: OAuthException
Message: Unknown path components: /touchcontrol:watch
我很绝望!!请帮忙!,这可能与我的应用程序中的 OG 设置有关吗?
我已经看到了一个关于这个的先前问题,但是解决方案没有修复我的代码..仍然得到同样的错误
这是我的代码:
function postAction() {
FB.api('/me/namespace:watch' + '?video="video url"', 'post', function (response) {
var msg = 'Error occured';
if (!response || response.error) {
if (response.error) {
msg += "\n\nType: " + response.error.type + "\n\nMessage: " + response.error.message;
}
alert(msg);
} else {
alert('Post was successful! Action ID: ' + response.id);
}
});
}
</script>
元标签:
xmlns:fb="https://www.facebook.com/2008/fbml">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# video: http://ogp.me/ns/video#">
<meta property="fb:app_id" content="[idnumber]" />
<meta property="og:title" content="titlesomething" />
<meta property="og:image" content="imageurl.jpg" />
<meta property="og:description" content="MyDescription" />
<meta property="og:url" content="http://url.com">
<meta property="og:site_name" content="contentname" />
<meta property="og:type" content="video.watches" />
提前致谢!