导出 Facebook“我喜欢”对数据库进行投票

发布于 2024-11-08 15:47:33 字数 816 浏览 5 评论 0原文

我正在尝试构建一个应用程序,让用户对我网站中的图片进行投票。用户可以通过点击“我喜欢”按钮进行投票。 我必须为每张图片登记投票并将该值存储在数据库中。我需要这些信息,以便在我的网站上按投票降序显示这些图片(我将从数据库中获取投票)。

我不知道如何将这些数据导出到数据库。 该应用程序将用 ASP classic 编写。

我在这里读过 Facebook Like 按钮和 MySQL 数据库 执行 FQL

SELECT like_count FROM link_stat WHERE url="url is here"

还有建议阅读此处:http://developers.facebook。 com/docs/reference/fql/link_stat

它说要运行此查询

$facebook->api_client->fql_query('SELECT share_count, like_count, comment_count, total_count FROM link_stat WHERE url="YOUR_SHARE_URL"');

我的问题是我在 ASP Classic 中工作,但我不知道如何运行该查询。

I'm trying to build an application to let users vote pictures in my site. Users can vote by clicking the "I like" button.
I have to register votes for each picture and store that values in a database. I need this information in order to show those pictures in my web site ordered by votes descending (and I'll pick up the votes from the db).

I don't know how to export those data to the db.
The application will be written in ASP classic.

I've read here Facebook Like button and MySQL database
to perform FQL

SELECT like_count FROM link_stat WHERE url="url is here"

There was also the suggestion to read here: http://developers.facebook.com/docs/reference/fql/link_stat

It says to run this query

$facebook->api_client->fql_query('SELECT share_count, like_count, comment_count, total_count FROM link_stat WHERE url="YOUR_SHARE_URL"');

My problem is that I work in ASP Classic and I don't know how to run that query.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文