实施 Facebook 页面选项卡竞争时遇到问题
我正在开发一个将举办竞赛的 Facebook 页面选项卡。
首先是粉丝门,我已经使用 Facebook php sdk 和签名请求轻松实现了这一点。
当用户通过粉丝门时,我喜欢该页面。有一个包含条目详细信息的表格。
现在我只能允许某人参加一次比赛。
所以我尝试的是获取用户 ID,但根据 Facebook 帐户,我要么取回 ID,要么得到用户 ID =0。
有什么方法可以让我获得一个独特的值,以便我可以存储用户已参加比赛而无需允许访问。
I am developing a Facebook page tab that will hold a competition.
So firstly there is the fan gate, I have implemented that easy enough with the Facebook php sdk and the signed request.
When the user gets through the fan gate I.e liked the page. There is a form with entry details.
Now I can only allow someone to enter the competition once.
So what I tried was to get the user id, but depending on the Facebook account I either get back the ID or else I get the user ID =0.
Is there any way for me to get a unique value so I can store that the user has entered the competition without having to allow access.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅当用户授予应用程序权限时,才会在签名请求中给出用户 ID。
The user id is given in the signed request only if the user has given permissions to the application.