Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 21-Jul-11 18:25pm
Edited 21-Jul-11 18:34pm
v2
Comments
SAKryukov at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Member 7785345 at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>]]>
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 468
1 Sergey Alexandrovich Kryukov 323
2 PhilLenoir 115
3 RajeeshMenoth 110
4 Peter Leow 100
0 Sergey Alexandrovich Kryukov 6,465
1 OriginalGriff 5,926
2 CPallini 2,473
3 Richard MacCutchan 1,687
4 Abhinav S 1,540


Advertise | Privacy | Mobile
Web02 | 2.8.140821.2 | Last Updated 9 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100