我正在尝试访问FB页面的like_stat信息,特别是facebook.com/womenmakemovies
。手动导航到页面,“喜欢”磁贴显示该页面超过14K的喜欢。
为了使用FB API访问此数据,我运行了以下查询:
SELECT url, normalized_url, share_count, like_count, comment_count, total_count, commentsbox_count, comments_fbid, click_count FROM link_stat WHERE url="facebook.com/womenmakemovies"
所选的所有“计数”都返回值为0.
是否有其他方法可以在单个查询中收集所有这些数据,或者我可以对当前查询进行一些更改以获取正确的数据?
旁注:我也遇到了其他页面的这个问题,但是我获得统计数据的大多数页面都会返回正确的数据给出上述查询
答案 0 :(得分:2)
您无法使用link_stat
查询Facebook页面。您必须使用page或insights表。
这将为您提供当前页面的喜欢次数:
SELECT name, fan_count, new_like_count FROM page WHERE username="womenmakemovies"
答案 1 :(得分:2)
对于喜欢的人来说,你可以使用:https://graph.facebook.com/womenmakemovies
{
"name": "Women Make Movies",
"is_published": true,
"website": "www.wmm.com\nwww.youtube.com/wmmnyc",
"username": "womenmakemovies",
"founded": "1972",
"company_overview": "Women Make Movies is the world's leading distributor of independent films by and about women, with a focus on cutting-edge documentaries that give depth to today's headlines, as well as artistically and intellectually challenging works in all genres. Our films are showcased in prestigious exhibition venues and festivals both nationally and internationally. The Women Make Movies collection of more than 500 films and videotapes is also used by thousands of educational, community and cultural organizations annually.\n\n\n\n",
"mission": "http://www.wmm.com/about/general_info.shtml",
"products": "DISTRIBUTION SERVICE\nhttp://www.wmm.com/filmcatalog/new_releases.shtml \n\nPRODUCTION ASSISTANCE PROGRAM\nhttp://www.wmm.com/filmmakers/production_assistance.shtml\n \n\n",
"about": "www.wmm.com youtube.com/wmmnyc twitter.com/womenmakemovies",
"location": {
"street": "462 broadway, ste 500",
"city": "New York",
"state": "NY",
"country": "United States",
"zip": "10013",
"latitude": 40.72103,
"longitude": -74.00049
},
"general_info": "WMM Funders:\n\nNew York State Council on the Arts\nNational Endowment for the Arts\nNew York City Department of Cultural Affairs\nThe Educational Foundation of America\nThe Little Family Foundation\nThe Weinstein Company\nThe Friends of Women Make Movies",
"checkins": 6,
"were_here_count": 33,
"talking_about_count": 142,
"category": "Non-profit organization",
"id": "6574279597",
"link": "https://www.facebook.com/womenmakemovies",
"likes": 14704,
"cover": {
"cover_id": "10150730604649598",
"source": "http://sphotos-f.ak.fbcdn.net/hphotos-ak-ash3/s720x720/536830_10150730604649598_87318500_n.jpg",
"offset_y": 74
}
}