获取Facebook用户个人资料的所有公开相册-iOS Facebook SDK

问题描述:

有没有办法在Facebook中获取用户个人资料的所有公开相册?例如,如果我在这样的URL中使用我的应用程序* access_token *:

Is there a way to get all public albums of a user profile in Facebook? For example if I use my app *access_token* in a URL like this:

https://graph.facebook.com/USER_ID/albums?access_token=MY_APP_ACCESS_TOKEN

我收到此错误:

{
"error": 
{
  "message": "A user access token is required to request this resource.",
  "type": "OAuthException",
  "code": 102
}
}

为什么?这是正确的语法吗?

Why? Is it the right syntax?

解决该问题之后,如何在Objective-C中做到这一点? 预先谢谢你

After solving that, How can I do it in Objective-C? Thank you in advance

即使您想要获得用户的公开相册,也需要要求用户授予正确的权限并使用您的应用程序登录. user_photos是查看当前用户的照片的必需项,friends_photos是查看该用户的朋友的照片的必需项.

Even if you want to get the public albums of a user, you need to ask the user to grant the correct permission and login with your application. user_photos is required to see the current user's photos, and friends_photos is required to see the user's friends' photos.