Facebook的API用于提取人的基本(公共)个人资料信息 [英] Facebook API for extracting basic(Public) profile info of a person
问题描述
其实我想通过它的名称或电子邮件ID无需任何身份验证的类型来提取Facebook上的人的基本(公开信息)的信息。那么,谁能告诉我详细的过程如何,我可以使用Java编程达致这和我想的结果以XML格式
https://graph.facebook.com/4
会给你一个结果类似 -
{
ID:4,
名:马克·扎克伯格
FIRST_NAME:马克
姓氏:扎克伯格
链接:http://www.facebook.com/zuck
用户名:扎克,
性别:男,
语言环境:EN_US
}
这会给你所有关于用户的公开信息。你得到的响应是一个JSON对象。如果你想在XML你必须手动转换它。
Beaware,并非所有的USER_ID的返回信息。这一切都取决于用户的隐私设置。
我没有JAVA的知识,因此我不能给你,code样品,但你可以使用任何方法,你觉得舒服...
作一个简单的HTTP请求到该网址Actually I want to extract basic(Public Profile) information of a person on Facebook by it's name or email-ID without any type of authentication. So, can anyone tell me the detailed procedure how i can acheive this using Java Programming and i want the result in XML format
https://graph.facebook.com/4
Will give you a result similar to -
{
"id": "4",
"name": "Mark Zuckerberg",
"first_name": "Mark",
"last_name": "Zuckerberg",
"link": "http://www.facebook.com/zuck",
"username": "zuck",
"gender": "male",
"locale": "en_US"
}
That will give you all the public information about a user. The response you get is a JSON object. If you want it in XML you'll have to manually convert it.
Beaware that not all USER_ID's will return information. It all depends on the user's privacy settings.
I have no knowledge of JAVA so I can't give you and code samples, but you can make a simple HTTP request to that URL using whatever methods you feel comfortable with...
这篇关于Facebook的API用于提取人的基本(公共)个人资料信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!