检查哪些用户喜欢Facebook页面 [英] Checking which users have liked a Facebook page

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

问题描述

我一直在研究这几天,我正在收集类似问题的很多答案,不幸的是,不,你不能这样做。所以,也许你可以帮助我找到一个更有效的方法,或者你有更好的答案。



我在一个事件中运行一个游戏。当用户注册我的游戏时,他们将授权我的Facebook应用程序。他们在我的游戏中得到点,做某些事情。他们得到的一点是喜欢一个选择的Facebook页面。



他们不喜欢通过我控制的任何界面的页面,所以我将在后台运行一个进程,检查我的授权用户是否喜欢这一页。



我打算有成千上万的人玩这个游戏。我为每个人都有一个access_token,我知道我可以通过access_token获取Person X的一个喜欢的列表,但是获取了10,000多个喜欢的列表,以检查他们是否喜欢这个页面似乎是可笑的...特别是如果他们不喜欢,我不能把它们列入名单。我需要在活动期间每隔几分钟检查一次,以查看他们是否喜欢该页面,并给予他们积分。一旦他们喜欢该页面,那么我不再需要继续检查它们,但是这仍然需要大量的请求。



有没有办法可以确定我的10k +用户中有哪些对我有个别的access_tokens,喜欢我的页面?



或者我可以得到最近喜欢某个页面的人的列表吗?



其他任何建议? / p>

编辑:作为我的FB页面的管理员,我可以使用网站点击,我可以看到所有喜欢我的页面的人,所以我觉得就像应该有一些方法来编程地访问这个信息。我只是错过了一些东西?

解决方案

这个问题似乎是一个使用 FQL 。有一个表格叫做 page_fan 作为用户页面表之间的连接表。您可以为每个用户运行查询以查看所选页面是否存在一行。例如:

  SELECT 1 FROM page_fan WHERE uid = me()和page_id = 8484927467 


I've been researching this for a couple of days and I'm seing a lot of answers to similar questions and they are unfortunately all "No, you can't do that." So, perhaps you can help me find a more efficient way or perhaps you have a better answer.

I'm running a game at an event. When users sign up for my game, they'll authorize my Facebook app. They get points in my game for doing certain things. One of the things they get points for is Liking a chosen Facebook page.

They don't Like the page through any interface I control though, so I'm going to be running a process in the background which checks if my authorized users have liked the page.

I'm going to have tens of thousands of people playing this game though. I've got an access_token for each of them and I know I can fetch a list of likes for Person X with their access_token, but fetching 10,000+ lists of likes to check if they've liked the page seems ridiculous... especially since if they haven't liked it, I can't just cross them off the list. I need to keep checking every few minutes for the duration of the event just to see if they have liked the page yet and give them points. Once they have liked the page then I no longer need to keep checking them, but that's still going to require a ton of requests.

Is there a way that I can determine which of my 10k+ users, for whom I have individual access_tokens, have liked my page?

Or can I get list of people who have recently liked a particular page?

Any other suggestions?

EDIT: As the administrator of my FB page, I can use the website to just click through and I can see all of the people who have liked my page, so I feel like there should be some way to access this information programmatically as well. Am I just missing something?

解决方案

This problem seems like a candidate for using FQL. There's a table called page_fan that acts as a join table between the user and page tables. You could run a query for each user to see whether a row exists for the chosen page. For example:

SELECT 1 FROM page_fan WHERE uid = me() and page_id = 8484927467

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

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