![](http://headlineslist.com/images/banner.gif)
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 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HTML code for a facebook share button? - Jay - 04-28-2014, 12:47 AM
[] - Click Click - 04-28-2014 12:59 AM
|
User(s) browsing this thread: 1 Guest(s)