views:

54

answers:

1

These sorts of facebook problems often become tumble weeds, but I thought I'd try anyway.

I'm wanting to create a facebook photo vote app with facebook connect. Photos in a certain facebook gallery will be displayed on a website with a like button next to it. They will be ordered by their number of likes.

I'm having trouble with the like button. This like button needs to link to the photo somehow, but I can't figure out how to do that. The fb:like social plugin accepts a url, but if you use the url of the photo, it doesn't seem to work.

Thanks for any help you can give!

A: 

I believe the Open Graph protocol can you help you there.

It will allow you to do something like:

ANDY Likes PHOTO on WEBSITE

You will even be able to specify a thumbnail of the liked image.

The only thing I am not sure about is if you can have multiple like buttons on the same page and each of them having a different action.

For now, I will assume that there will be a single like button on the page (for example, the profile page of the user that I want to 'like').

You need to specify some meta tags in the head of the page and have a normal like button anywhere in the body.

See http://developers.facebook.com/docs/opengraph for all the details including an example.

Andy
Thanks for your answer. I'm aware of OGP, unfortunately though, I'm looking to have a grid-like display of all available photos with a like button next to each. I find it strange that you can't create a like button using an object_id...
ajbeaven

related questions