Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Facebook graph api中的OAuth身份验证错误_Facebook - Fatal编程技术网

Facebook graph api中的OAuth身份验证错误

Facebook graph api中的OAuth身份验证错误,facebook,Facebook,使用graph APIgraph.facebook.com/103284669756289_575801289171289 "error": { "message": "An access token is required to request this resource.", "type": "OAuthException", "code": 104, "fbtrace_id": "E9N1FZBirds" } 获取特定id详细信息时获

使用graph API
graph.facebook.com/103284669756289_575801289171289

"error": {
      "message": "An access token is required to request this resource.",
      "type": "OAuthException",
      "code": 104,
      "fbtrace_id": "E9N1FZBirds"
   }
获取特定id详细信息时获取此响应。

使用Facebook上的Graph API Explorer测试API调用。我认为此调用缺少访问令牌

完成了。您只需访问URL中的\u令牌。

您能告诉我您是如何获取结果的吗?使用graph API或SDK?使用graph API,我在explorer中对此进行了测试,并获得了故事的详细信息。“故事”:“BCOD Web Solutions Pvt.Ltd.分享了他们的照片。”检查并让我知道是否还有问题。我从Facebook的Graph API Explorer获得此响应,我想在iOs应用程序中获得这些响应,当我在chrome中调用此url时,错误仍然存在。在chrome中,您不发送访问令牌。iOS应用程序也存在同样的问题(您错过了访问令牌)。你能分享你的代码吗?这是我的代码,NSURL*url=[NSURL URLWithString:[NSString stringWithFormat:@;NSMutableURLRequest*req=[NSMutableURLRequest REQUEST WITHURL:url];[req addValue:@“应用程序/x-www-form-urlencoded”forHTTPHeaderField:@“内容类型”];[req setHTTPMethod:@“获取”];