I’ve been working with PHP for a while, but I’m not an expert in any way. I’ve got a website (WIP) where i upload all my photos that I’ve taken. However, every photo has a facebook like button, so my visitors can like my photos or share them with friends.
I’ve seen lots of people sorting articles/photos etc by facebook likes? I’ve been searching around but there seems to be a lot of questions and less answers. I’ve just found a few WordPress plugins (and I’m not working with WP, so that’s not needed).
Dose any one here know how i can do this? maybe got a tutorial/snippet i can have a look at? I imagine i need to store the likes in my own database?
You could run a FQL query like this:
You would want to send all of your url’s in, and you would want to cache this result. You can test this query here and you can learn how to execute this FQL query here.