Facebook OAuthException仅来自某些服务器

时间:2013-05-01 17:00:20

标签: facebook-graph-api

我正在尝试检索一个公开的Facebook相册,以便在网站上显示。 我可以使用Facebook Graphc访问相册列表和单个相册,而无需获取访问令牌 见https://graph.facebook.com/vailresorts/albums 我已尝试从不同网络上的4个不同服务器,没有登录到Facebook,它工作正常。但是,当我把它放在我的测试服务器上时,它不起作用,我得到了

OAuthException - An access token is required to request this resource.

错误。

我很想知道为什么会这样,请求来自不同地方的网址给出不同的结果?

我理解如果专辑是公开的,我不需要App Id和App Secret 这不是真的吗?

Request header:
    Request URL:https://graph.facebook.com/vailresorts/albums
    Request Method:GET
    Status Code:200 OK
    Request Headersview source
    accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    accept-charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
    accept-encoding:gzip,deflate,sdch
    accept-language:en-US,en;q=0.8
    cache-control:no-cache
    host:graph.facebook.com
    method:GET
    pragma:no-cache
    scheme:https
    url:/vailresorts/albums
    user-agent:Mozilla/5.0 (Windows NT 5.2) AppleWebKit/537.31 (KHTML, like Gecko)

Chrome / 26.0.1410.64 Safari / 537.31 版本:HTTP / 1.1

1 个答案:

答案 0 :(得分:0)

只是投入'我也'而且每次请求都不是失败。这个bug可能是相关的: https://developers.facebook.com/bugs/410815249017032

我收到错误:

{“error”:{“message”:“请求此资源需要访问令牌。”,“类型”:“OAuthException”,“code”:104}}

编辑:对不起,不是故意回答,而是希望提供评论。无知如何做到这一点。

更新:我提交了一个新错误,试图引起他们的注意https://developers.facebook.com/bugs/444360005657309