How to Share on Facebook With JavaScript

Print this articleA Facebook "Share" button on your website lets users share your pages with their Facebook friends. Facebook provides you with the code to add the button to your Web pages, so you do not need to create any advanced code. The button links to the Facebook network, but no private information is passed between your website and the Facebook user's account. The JavaScript button posts a link to the Facebook user's Wall, which helps you build traffic to the site.

Related Searches:Difficulty:ModerateInstructions 1

Right-click the Web page you want to use to display the share button. Click "Open With," then choose your HTML editor from the list of programs.


Add the JavaScript code to your header tags in the HTML page. Add the following code within the starting "" tag and ending "" tag in your code:

View the Original article

No comments:

Post a Comment