3

使用 Graph API Explorer,我可以使用应用令牌或用户令牌重现此错误。

呼叫 (POST)

/0000userid0000/mynamespace:Create
thread=aURLonOurSite
access_token=xxxxxx

回复

{
  "error": {
    "message": "An unknown error has occurred.", 
    "type": "OAuthException", 
    "code": 1
  }
}

运行令牌调试表明我有权限:

Issued : 1346937448 (about an hour ago) 
Expires: 1352121448 (in about 2 months) 
Valid  : True 
Origin : Web 
Scopes : email publish_actions user_location
4

1 回答 1

1

您的问题不够清楚,但我将在这里向您展示我在以前的项目中使用过的示例。

$params = array(
    'voucher'=>$plink,//'https://thevoucherlink.com/account/order/post.php?image='.$file_name.'&business_name='.$dd['title'].'&from='.$_SESSION['fb_uid'].'&to='.$_POST['friend_id'].'&msg='.$d['giftmsg'],
    'access_token'=>$facebook->getAccessToken(),
    'message'=>$d['giftmsg'],
    );

$out = $facebook->api('/me/thevoucherlink:send','post',$params);

在这里,我send对对象使用了动作Voucher。我认为您没有在参数上使用对象。

谢谢

于 2012-09-14T07:03:01.630 回答