admin管理员组文章数量:1352872
I have defined an og name space, og_shamh, and an action "watch" using the FB app editor. I have called a javascript function (below) which attempts to create an action object. But I get :
["error response from fbCreateAction",
Object
error: Object
message: "Unknown path ponents: /og_shamhh:watch"
type: "OAuthException"
__proto__: Object
__proto__: Object
The javascript function called with "og_shamhh" and "watch" is:
function fbCreateAction(action,url){
FB.api('/me/'+og_namespace+':'+action+
'?recipe='+url,'post',
function(response) {
log("error response from fbCreateAction",response);
if (!response || response.error) {
alert('Error occured');
} else {
alert('Post was successful! Action ID: ' + response.id);
}
});
}
Is there something i need to do on the facebook side that my app can use my actions? I am myself logged in and am an app admin. is this something to do with needing to submit my actions for approval?
You can see the relvant meta data, header etc here :
I have defined an og name space, og_shamh, and an action "watch" using the FB app editor. I have called a javascript function (below) which attempts to create an action object. But I get :
["error response from fbCreateAction",
Object
error: Object
message: "Unknown path ponents: /og_shamhh:watch"
type: "OAuthException"
__proto__: Object
__proto__: Object
The javascript function called with "og_shamhh" and "watch" is:
function fbCreateAction(action,url){
FB.api('/me/'+og_namespace+':'+action+
'?recipe='+url,'post',
function(response) {
log("error response from fbCreateAction",response);
if (!response || response.error) {
alert('Error occured');
} else {
alert('Post was successful! Action ID: ' + response.id);
}
});
}
Is there something i need to do on the facebook side that my app can use my actions? I am myself logged in and am an app admin. is this something to do with needing to submit my actions for approval?
You can see the relvant meta data, header etc here : http://www.shamrockirishbar./tvsport
Share Improve this question edited Nov 27, 2011 at 16:27 RichieHH asked Nov 27, 2011 at 16:08 RichieHHRichieHH 2,1234 gold badges29 silver badges31 bronze badges 02 Answers
Reset to default 9This error occurs when either the namespace
or the action
(or both) in the api url are wrong.
To make sure you access the good url, check the Get Code
link near the action you want to perform in the Action Types
section of the Open Graph
tab of your app's settings.
Alternatively you can check out: Open Graph
> Dashboard
> Your Action Type
> Advanced Settings
at the bottom of the page.
Problem solved and others now pending. It turns out I had, duh, changed the action name.... Silly
本文标签:
版权声明:本文标题:php - Facebook graph api and newly defined objects and actions : message: "Unknown path components" - Stack Ov 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743913655a2560841.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论