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.