以下Facebook图谱请求中的access_token是什么意思,如何获取?

问题描述 投票:0回答:1

我想在我的 iPhone 应用程序中显示 Facebook 用户的照片列表或相册,他应该能够将这些照片保存到照片库。我找到了一些 PHP 示例,但无法在 iPhone 中重现相同的示例

ASIRequest
。我想使用以下图形请求,那么如何在会话对象中使用
access_token

 https://graph.facebook.com/me/albums?access_token= //GraphRequest
// 这是用户登录后我最终得到的委托,目前我正在查询一些 fql,

- (void)会话:(FBSession*)会话 didLogin:(FBUID)uid {
    _label.text = @"";
      NSString * fql = [NSString stringWithFormat:
                     @“选择uid,来自用户的名称,其中uid == %lld”,session.uid];
    NSDictionary* params = [NSDictionary DictionaryWithObject:fql forKey:@"query"];
    [[FBRequest requestWithDelegate:self] 调用:@"facebook.fql.query" params:params];
}

或者有什么办法可以满足我的要求吗?

ios facebook
1个回答
1
投票

您需要首先进行身份验证,这将为您提供访问代码。然后,您可以使用该访问代码进行后续通信。

http://developers.facebook.com/docs/authentication/

© www.soinside.com 2019 - 2024. All rights reserved.