使用图形API检索Facebook页面的数据 [英] Retrieve data of a facebook page with graph API
问题描述
我曾经(在2012年)使用FQL进行编码,并且能够进行一些功能,例如
I used (in 2012) to code with FQL and I was able to make some features such as
实际上,FB迁移到了图形API.
Actually, FB migrate to graph API.
我的问题是:即使我不是该页面的粉丝(或不是朋友),也可以使用图形API检索页面(或人)的公共数据
My question is : Is it possible to retrieve public data of a page (or person) with graph API, even if I'm not a fan of that page (or not a friend )
推荐答案
是的,使用Graph API,您可能要做的一切.除非页面/组是私有的,否则您将能够获取他们的公共数据,而不必喜欢页面.
Yes, everything that you want to do is quite possible with the Graph API. Unless the Page / Group is private, then you will be able to fetch their public data without having to like the page.
https://developers.facebook.com/docs/graph-api
Facebook提供的一个有用的工具是Graph Explorer,它可以让您测试查询并查看返回的信息: https://developers.facebook.com/tools/explorer
A useful tool that Facebook has provided is the Graph Explorer that allows you to test your queries and see what information will come back: https://developers.facebook.com/tools/explorer
作为一个特定的示例,您可以在不使用任何身份验证令牌的情况下进行获取: http://graph.facebook.com/cineplex 将返回
As a specific example that you can fetch without any auth tokens: http://graph.facebook.com/cineplex will return
{
"id": "11751844989",
"about": "Starring Galaxy, Cineplex Odeon, SilverCity, Famous Players, Colossus, Coliseum, Cinema City & Scotiabank Theatres.",
"can_post": false,
"category": "Movie",
"checkins": 0,
"cover": {
"cover_id": "10150491543319990",
"offset_x": 0,
"offset_y": 0,
"source": "https://scontent.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/s720x720/10377524_10150491543319990_3410282243848063213_n.png?oh=47c4eb7d50a4d259236ee7c2bbb3300a&oe=55C89C6E",
"id": "10150491543319990"
},
"description": "For showtimes and theatre locations check out www.cineplex.com.\n\nCineplex Entertainment is the largest motion picture exhibitor in Canada and owns, leases or has a joint-venture interest in 162 theatres with 1,639+ screens serving approximately 77 million guests annually. Headquartered in Toronto, Canada, Cineplex operates theatres across Canada and is the exclusive provider of UltraAVX\u2122 and the largest exhibitor of digital, 3D and IMAX projection technologies in the country. Proudly Canadian and with a workforce of approximately 10,000 employees. \n",
"directed_by": "Cineplex Entertainment",
"has_added_app": false,
"is_community_page": false,
"is_published": true,
"likes": 414426,
"link": "https://www.facebook.com/Cineplex",
"name": "Cineplex",
"parking": {
"lot": 0,
"street": 0,
"valet": 0
},
"phone": "1-800-333-0061",
"plot_outline": "ESCAPE WITH US",
"starring": "Cineplex Odeon, Galaxy, SilverCity, Scotiabank Theatres, Famous Players, Colossus, Coliseum and Cinema City",
"talking_about_count": 5147,
"username": "Cineplex",
"website": "www.cineplex.com",
"were_here_count": 0
}
这篇关于使用图形API检索Facebook页面的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!