Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi All,

I wannt to know how to implement facebook like button in web application. I got some code of javascript for Like button. I tried it i am getting all things working but not able to see in my facebook profile as my recent activity.
Updated 21-Jul-11 18:34pm
Sergey Alexandrovich Kryukov 22-Jul-11 0:38am    
You are asking about Facebook or HTML design? If this is about design, who cares about your Facebook profile? What's the problem? Why can't you simple look at CSS and HTML to see how it works?

Share this answer
Member 7785345 9-Oct-12 2:30am    
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
<form id="form1" runat="server">

<%--<div class="fb-like" data-href="http://localhost:50060/WebSite10/fbwall.aspx" data-send="true" data-width="450" data-show-faces="true"></div>--%>

<div id="fb-root"></div>
<script> (function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); = id;
js.src = "//";
fjs.parentNode.insertBefore(js, fjs);
} (document, 'script', 'facebook-jssdk'));</script>

<div class="fb-like" data-href="" data-send="true" data-width="450" data-show-faces="true"></div>
// this would be best solution that might be there for ur answer
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