Hello I'm trying to implement a url like counter but I want it to take into account only likes from my friends. Long story short how many of my friends liked the url "http://www.domain.com/something"
I've been trying this 2 days now with no success, here are some queries I'm experimenting with so far
"query1":"SELECT user_id FROM like WHERE object_id IN (SELECT id FROM object_url WHERE url = '" + url + "') LIMIT 5000"
"query2":"SELECT url FROM url_like WHERE user_id IN (SELECT uid1 FROM friend WHERE uid2 = me()) AND strpos(url, '"+url+"') = 0"
"query3":"SELECT total_count, like_count, click_count FROM link_stat WHERE url='"+url+"'",
"query4":"SELECT url FROM url_like WHERE user_id IN (SELECT uid1 FROM friend WHERE uid2 = me())"
Some of them work together in a fql.multyquery Anyway I keep testing with friend accounts and the results are wrong, nothing works and I feel really disappointed.
I would really appreciate a working example or some guidance.
PS:(app has full access to everything.)