尝试在Facebook上获取完整的朋友列表 [英] Try getting full friendlist on Facebook

查看:56
本文介绍了尝试在Facebook上获取完整的朋友列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写Facebook搜索引擎,所以现在我需要将所有fb朋友的姓名和ID都放入一个数组.

I am writing Facebook search engine, so now I need to get all my fb friend's names and ids to an array.

我已经尝试使用适用于.net的Facebook sdk,一些py库,适用于java的库,而且我总是只能将一个人放入我的数组中,我在获得令牌许可的情况下选择了所有内容.这总是同一个人,也是开发人员.但是没有其他人.

I've already tried with Facebook sdk for .net, some py library, library for java and I always get only one person into my array, I select everything on token's permission. This is always the same person, who is developer too. But there is nobody else.

是否可以通过API获取此信息,还是应该开始查看html,并从html获取好友列表?

Is there a way get this with API, or should I start looking at html, and get friendlist from html?

推荐答案

从OpenGraph 2.0开始,该API不提供Facebook Friends.

The API doesn't not supply Facebook Friends as of OpenGraph 2.0.

请参考使用Graph API

Please refer to Using the Graph API.

您只能获得正在使用该应用程序的朋友或可以邀请的朋友.

You can only get the friends that are using the App, or the friends that are invite-able.

祝你好运!

这篇关于尝试在Facebook上获取完整的朋友列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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