是否有可能使用 Facebook SDK 从他的用户 ID 中获取用户信息?一个重要的注意事项是,在应用程序发出请求之前,用户应该已经批准了应用程序及其权限。如果可能,实现这一目标的正确方法是什么?我正在尝试使用此代码:
[FBRequestConnection startWithGraphPath:@"/100007046299250"
parameters:nil
HTTPMethod:@"GET"
completionHandler:^(
FBRequestConnection *connection,
id result,
NSError *error
) {
/* handle the result */
}];
但我收到以下错误消息:
Error for request to endpoint '/100007046299250': An open FBSession must be specified for calls to this endpoint.
谢谢