I’d like to have a facebook like button, and I would like it to act like this:
When a user clicks on the button in the user’s news feeds the following is shown:
– the name of my site
– link to my web site
– my web site logo
– short description
I am using ruby on rails 3.
Would you be so kind and help me configure this?
Thanks, D.
There are two steps on how to achieve this. First step is to use the appropriate OpenGraph Tags on your website. These are just additional tags in your HTML head. You can find examples on the Open Graph Webspage.
Second step is to embed the like button. You can configure the code on the Facebook Developer page. When a user clicks on the button, the OpenGraph tags are automatically parsed and the result is shown in the user’s stream.