问题描述
我收到 Facebook 图形请求错误。错误被隔离(据我所知)一台特定设备上的一个用户...我们登录用户,然后当我们尝试通过图表提取他们的姓名和个人资料图片时接口。它返回带有以下错误链接的文本:
{
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api","type": "GraphMethodException","code": 100,"error_subcode": 33,"fbtrace_id": "AxkcfKPSxH-Iuap7f_eQDWO"
}
}
图形请求的相关代码:
let graphRequest = GraphRequest(graPHPath: "/me",parameters: ["fields":"name,picture.type(large)"],tokenString: Accesstoken.current?.tokenString,version: nil,httpMethod: HTTPMethod.get)
graphRequest.start { (connection,resultData,error) in
// Graph request Failed?
if error != nil {
if #available(iOS 14.0,*) {
ChainApp.consoleLogger.debug("FB Graph Error: \(String(describing: error),privacy: .public)")
}
return
}
}
我们已经坚持了好几天了。向 Facebook 提交了一个错误报告,他们说这是一个实施问题,因为 Graph API Explorer 使用相同的访问令牌字符串非常适合这个请求。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)