This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML code for a facebook share button?
04-28-2014, 12:59 AM
Post: #3
 
in the <head> put this:
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"
type="text/javascript">
</script>
after that create label:

lblShare.Text = "<a name=\"fb_share\" type=\"button\"></a>" +
"<script " +
"src=\"http://static.ak.fbcdn.net/connect.php/js/FB.Share\" " +
"type=\"text/javascript\"></script>";
HtmlMeta tag = new HtmlMeta();
tag.Name = "title";
tag.Content = "This is the page title";
Page.Header.Controls.Add(tag);
HtmlMeta tag1 = new HtmlMeta();
tag.Name = "description";
tag.Content = "This is a page description.";
Page.Header.Controls.Add(tag1);

i use this in asp.net websites... try it
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[] - Bassman1 - 04-28-2014, 12:55 AM
[] - Click Click - 04-28-2014 12:59 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)