0

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

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

错误。

我想知道为什么,从不同的地方请求 url 会产生不同的结果?

我的理解是,如果专辑是公开的,我不需要 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

4

1 回答 1

0

只是为了加入一个“我也是”,而失败并不是每个请求都存在。此错误可能与此有关: https ://developers.facebook.com/bugs/410815249017032

我得到错误:

{"error":{"message":"请求此资源需要访问令牌。","type":"OAuthException","code":104}}

编辑:对不起,不是要回答,但希望作为评论提供。对如何做到这一点一无所知。

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

于 2013-05-01T19:16:02.000 回答