Oauth 发布自定义对象返回异常代码1出现未知错误

Oauth 发布自定义对象返回异常代码1出现未知错误,oauth,facebook-opengraph,Oauth,Facebook Opengraph,使用Graph API Explorer,我可以使用应用程序令牌或用户令牌再现此错误 电话(邮寄) 回应 { "error": { "message": "An unknown error has occurred.", "type": "OAuthException", "code": 1 } } 运行令牌调试表明我具有以下权限: Issued : 1346937448 (about an hour ago) Expires: 1352121448 (i

使用Graph API Explorer,我可以使用应用程序令牌或用户令牌再现此错误

电话(邮寄)

回应

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

你的问题还不够清楚,但这里我将向你展示一个我在上一个项目中使用的示例

$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
操作来处理
凭证
对象。我想您还没有在参数上使用object


谢谢

使问题重现所需的更多信息…FB是否已批准该操作,或者您是否正在使用测试用户、沙盒模式等。调试器对您打开的图形对象URL有何评论?这是具有已批准操作的实时站点。你不会相信的,opan图形调试器返回“解析输入URL时出错,没有数据被刮走。”当主机名中有大写字母时!!!如果我将其全部设置为小写,则调试器可以工作。我会测试这一点,如果我仍然得到的错误,让你知道这是问题所在。主机名不应该区分大小写。即使是Google.com也会失败,直到你把它改成小写:谢谢,但错误是OpenGraph看起来只接受小写的主机名。
$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);