脸书图。获取页面中的所有相册和照片
我正在尝试从将在网页上显示的 Facebook 页面的所有相册中获取所有照片。我对访问令牌有点困惑。我不希望用户必须登录 Facebook 才能查看照片,因此我不确定如何获取令牌。我是否必须为此创建一个连接应用程序?
I'm trying to get all the photos from all the albums of a Facebook page that will be shown on a web page. I'm getting a bit confused with the access token. I don't want the user to have to log in to Facebook to be able to see the photos so I'm not sure how to get the token. Do I have to make an application to connect to for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,专辑通常不会公开,除非用户将它们公开,即使是它们,我也不确定 API 是否允许您在没有用户先登录的情况下访问它们。我对 Facebook API 不太了解,但如果它与 Twitter API 类似,您将获得访问令牌作为通过 API 登录的用户的响应。
Yeah, albums aren't generally public unless a user has made them public, and even them I'm not sure as to whether the API would let you access them without a user logging into it first. I don't know much about the Facebook API, but if it's anything like the Twitter one you get the access token as a response from the user logging in via the API.