使用 Facebook 对网站上的图片进行投票
我正计划建立一个网站,上面会有几张照片供人们投票。
我想使用 Facebook 进行投票,以便用户在网站上选择他/她最喜欢的图片,当他投票时,他将启动 Facebook 应用程序,以便识别用户。他的投票将与用户 ID 一起存储在我的数据库中,因此他不能投票两次。用户可以选择通过投票来更新他的墙。
我知道这是可能的,而且我知道如何制作 Facebook 应用程序。但是我似乎没有找到一种方法可以从网站上访问它。
所以简短的问题是: 如何创建一个 facebook 应用程序,该应用程序将从网站调用并在将投票添加到数据库后返回信号?
谢谢
I am planning on making a website where there will be a couple of photo's on it on which people can vote.
I would like to want to use Facebook for voting, so that on the website the user chooses his/her favorite picture and when he votes, he will start a facebook application so the user is identified. His vote will be stored in my database, together with a userid, so he can't vote twice. User can choose to update his wall with the vote.
I know this is possible, and I know how to make facebook apps. However I don't seem to find a way to make this accessible from the website.
So the short question:
How can I create a facebook application that will be called from a website and gives a signal back after adding the vote to the database?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须将整个过程放入 Facebook 应用程序中,这意味着您也必须将图像放入应用程序中。这是回调用户投票的唯一方法。看看 Facebook 中一些为你的风格投票的应用程序,它们的工作方式相同。
You have to put the whole process into your Facebook application, which means that you have to put the images in the app too. It's the only way to get a callback on the user votes. Have a look at some vote your style apps in Facebook which are working the same way.