HTML code for a facebook share button? - Printable Version +- Twitist Forums (http://twitist.com) +-- Forum: Facebook forums (/forum-14.html) +--- Forum: Facebook apps (/forum-22.html) +--- Thread: HTML code for a facebook share button? (/thread-145102.html) |
HTML code for a facebook share button? - Jay - 04-28-2014 12:47 AM 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 - Bassman1 - 04-28-2014 12:55 AM 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&ref_query=how+to+add+a+facebook+ how to add a facebook to a website: http://www.facebook.com/help/?faq=12823&ref_query=how+to+add+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 - Click Click - 04-28-2014 12:59 AM 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 |