我正在为Facebook应用程序开发纸牌游戏,当找到匹配的对时,用户获得折扣代码。我需要将所有用户限制为每天一个游戏,以防止人们每天赢得超过1个代码。可以这样做吗?
答案 0 :(得分:2)
是:
Get user's FB UID
check if it is in your database (with today's date)
if yes: already played, deny access
if not: insert into database (with today's date), allow access