Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  Demo link: http://webperflab.com/david/like.html
I went there and clicked the like button, the information it drew up for me were of a completely different profile.

  {"id":"224***","name":"Dennis******","first_name":"Dennis","last_name":"******","link":"http://www.facebook.com/dennis******","username":"dennis*****","gender":"male","locale":"en_US"}
(Stars added by me to protect privacy of that person).


This has to do with the way that the way the algorithm works. When you click like, you like a page. Then, a server-side script on webperflab's server contacts Facebook's opengraph, gets a list of users, looks up information on the last user that liked the page, makes that user "unlike" the page (the page can do that, it's like kicking a user out of a group), and then returns information about that user. If, for example, another user likes the page before the script can return information about you, it will return information about the other user. The demo could probably fix this issue by having multiple groups.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: