获取Facebook用户个人资料的所有公开相册-iOS Facebook SDK [英] Get all public albums of a Facebook user profile - iOS Facebook SDK

查看:195
本文介绍了获取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.

这篇关于获取Facebook用户个人资料的所有公开相册-iOS Facebook SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆