Click here to Skip to main content
15,949,686 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 asp.net 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.
Posted
Updated 21-Jul-11 18:34pm
v2
Comments
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?
--SA

 
Share this answer
 
Comments
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<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); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=354132504681827";
fjs.parentNode.insertBefore(js, fjs);
} (document, 'script', 'facebook-jssdk'));</script>

</form>
<div class="fb-like" data-href="https://glacial-chamber-4610.herokuapp.com/" data-send="true" data-width="450" data-show-faces="true"></div>
</body>
</html>
// 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