Click here to Skip to main content
13,088,305 members (39,914 online)
Rate this:
 
Please Sign up or sign in to vote.
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 21-Jul-11 18:25pm
Updated 21-Jul-11 18:34pm
v2
Comments
SAKryukov 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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 9 Oct 2012
Copyright © CodeProject, 1999-2017
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