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:47 AM
Post: #1
HTML code for a facebook share button?
I want to put a button on my site so people can easily post to facebook/twitter/digg or whatever. Please tell me if I have to do anything to the code other than copy and paste it

Ads

Find all posts by this user
Quote this message in a reply
04-28-2014, 12:55 AM
Post: #2
 
The "Find Us on Facebook" badge provides your business a way to promote your Page off of our website, and help direct your customers to your presence on Facebook. This Badge can be applied in-store or on location, on the web, and in print collateral. You can learn how to create a badge for your Page from the "Promotion Guidelines" link, in the "Promote your page" section when you are editing your Page, or by clicking here. http://www.facebook.com/help/?faq=12823&...+facebook+

how to add a facebook to a website: http://www.facebook.com/help/?faq=12823&...a+facebook

Build the social and personalized web.
Facebook's powerful APIs enable you to create social experiences to drive growth and engagement on your web site. http://developers.facebook.com/

Facebook Help Center
http://www.facebook.com/help/

/help/?search=how%20to%20add%20a%20facebook%20to%20a%20website

Ads

Find all posts by this user
Quote this message in a reply
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 


Forum Jump:


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