开发者

Facebook and suggestions

I'm trying to write a simple application that finds out who liked your page. I used FQL and a query very similar to:

$query = 'SELECT user_id FROM like WHERE object_id="149187568469862"';

The first issue is that FB returns an empty array. Maybe the data will be available in the near future.

I will describe the most important issue. If the user X liked my page, I would like to know who suggested X to like my page. Maybe nobody, but there are chances that X pressed "Like" after a suggestion coming from a frie开发者_Python百科nd. I browsed the documentation, but I didn't find relevant information about how can I see who liked my page as a result of a suggestion. Do you have any ideas?

Thanks,


As far as I know you can not retrieve any historical information on who referred a "like". Furthermore, as of right now facebook does not seem to allow querying for all your pages "fans" (which is basically everyone who likes your page). They do, however allow looking up all pages that a user "likes" using fql. Much of their documentation is very "skinny" on examples. I actually learned the most by downloading the facebook connect javascript toolkit which came with some client side examples of the most used functionality. https://github.com/facebook/connect-js - this may be a good place to start

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜