Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
code for like and dislike as we do for comment in facebook
Posted
Comments
I.explore.code 17-Oct-11 4:00am    
Most disrespectful and inconsiderate way of asking questions. No problem definition, no mention of what have you done to solve the problem yourself, no mention of where exactly you are stuck. And the statement itself looks like an order placed at a hotel. You MUST realise this is a question-answer section where you have to ask specific questions not broad ones. Plus, this is not a code factory which spits out code on your command. Learn to be a bit polite and courteous when on public forums like these, use "please" and "thanks" and "sorry" to make the people who try to help you feel like respected colleagues rather than your servants. If using these words is not a habit for you, try looking in the mirror and practice.

1 solution

Hi,
your question is confusing. If you like to embed a Facebook Like button within your web site, you'd have to study social plugins at Facebook for developers resource. The approach is fairly simple:

XML
<html>
    <head>
      <title>My Great Web page</title>
    </head>
    <body>
       <iframe src="http://www.facebook.com/plugins/like.php?href=YOUR_URL"
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:80px"></iframe>
    </body>
 </html>


Details can be found here[^]
Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900