FACEBOOK API: Like Button
I am developping a Facebook application and 开发者_运维知识库the client has requested that the user has to have the possigbility to like different pages.
For example: Project, Inner Page 1 like button has to displayed the user has liked Project, Inner Page 1; Project, Inner Page 2 like button has to displayed the user has liked Project, Inner Page 2; and so on.
Is it possible? I think it is with the ref attribute but could someone post me a simple example how to implement within an iframe application.
Technically, you can create a Like button for any page you want, you just need its URL.
You don't even need sample code, because Facebook provides a nice Like button generator: http://developers.facebook.com/docs/reference/plugins/like/
Just copy the generated code and place it on your page / pages.
精彩评论