消息:未知路径组件:/ touchcontrol:watch

时间:2012-07-05 11:07:05

标签: javascript jquery facebook opengraph

我试图将动作“观看”发布到对象“视频”

收到此错误:

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

提前致谢!

0 个答案:

没有答案