编程检索用户的Facebook页面的列表 [英] Programmatically retrieve a list of a user's Facebook pages

查看:204
本文介绍了编程检索用户的Facebook页面的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,

使用Facebook的API,我已经获得了用户的OAuth访问令牌。我可以用它来获取有关用户和后向他们的墙上,等我试图找出如何(或者是否有办法)编程获取用户拥有的页面列表(信息,以便他们能在一个下拉列表psented在第三方网站$ p $)。我一直无法找到Facebook的API在这样的方法,但我希望我已经错过了一些东西。

Using the Facebook API, I have obtained an OAuth access token for a user. I can use it to retrieve information about the user and post to their wall, etc. I'm trying to figure out how to (or if there is a way to) programmatically get a list of pages a user owns (so that they can be presented in a drop-down list on a third-party site). I have been unable to find such a method in the Facebook API, but I'm hoping I've missed something.

谢谢!

推荐答案

由于这个问题有人问,Facebook已经增加了用户图形API对象上一个新的连接:帐户

Since this question was asked, Facebook has added a new connection on the "User" Graph API object: accounts.

所拥有的Facebook页面
  当前用户。如果manage_pages
  权限已被授予,这
  连接也产生access_tokens
  可以用来查询图表
  API代表的页面。 图形API参考:用户

The Facebook pages owned by the current user. If the manage_pages permission has been granted, this connection also yields access_tokens that can be used to query the Graph API on behalf of the page. Graph API Reference: User

这篇关于编程检索用户的Facebook页面的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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