2012-05-08 34 views
1

我试图发布一个动作使用js sdk。奇怪的错误在Facebook的opengraph

我的动作代码是

function watchvid() 
    { 
     FB.api(
     '/me/video.watches?video=http://watchvideoz.in/watch.php?v=34', 
     'post', 
     function(response) { 
      if (!response || response.error) { 

       alert(JSON.stringify(response.error)); 
      } else { 
var a = response.id; 
    MyApp.color = a; 

      } 
     }); 
    } 

和我的meta标签是

<meta property="og:url" content="http://watchvideoz.in/watch.php?v=34"/>  
<meta property="fb:app_id" content="288976161189701"/> 
<meta property="og:title" content="Buckys C++ Programming Tutorials - 9 - Functions"/> 
<meta property="og:type" content="video.other" /> 
<meta property="og:image" content="http://img.youtube.com/vi/bsWWHo4KDHE/hqdefault.jpg"/> 
<meta property="og:description" content="For all of our videos, visit http://thenewboston.com"/> 
<meta property="og:site_name" content="YourVidz"/> 

,但我得到以下错误

{"message":"(#3502) Object at URL http://watchvideoz.in/watch.php?v has og:type of 'website'. The property 'video' requires an object of og:type 'video.other'. ","type":"OAuthException","code":3502} 

在上面的错误是忽略后的值= ie.it只检索http: //watchvideoz.in/watch.php?v

虽然如果传递URL作为查询字符串参数FB调试工具获取正确的价值观

http://watchvideoz.in/watch.php?v=34

+0

是的调试器返回所有正确的值..对我来说这很奇怪 – vishnu

+0

是它的奇怪 –

回答