This article introduces the implementation of Facebook sharing features on the Web page, please see this article for detailed code.
Code as follows: <span style= "Font-family:verdana, Arial, Helvetica, Sans-serif; Word-wrap:normal; Word-break:normal; line-height:19.5px; " ><span style= "Word-wrap:normal; Word-break:normal; Line-height:19px "></span></span> digression: Jump directly to the Facebook login page share button: URL: http:// www.facebook.com/sharer.php?u=www.baidu.com&t=123213123 One of the U parameters for the link you want to share. The T parameter is not clear yet. Facebook sharing features implementation: Share page set 1. A link: parameter is to share the page of the link code as follows: <a style= "Display: inline-block;width:35px; height:40px; position:relative; top:10px; left:48px; " title=" Share on Facebook "target=" _blank " onclick=" Javascript:window.open (' http://www.facebook.com/ Sharer.php?u= ' +encodeuricomponent (' https://www.baidu.com ') + ' &t= ' +encodeuricomponent (document.title), ' NewWindow ', ' width=800, height=400 ', ' center '); void (0); " > 2.FB identified tag: code as follows: <title>test</</span>title> <meta propErty= "Og:image" content= "test/test.jpg"/> <meta property= "og:description" content= "test>"/> <meta property= "Og:url" content= "https://www.baidu.com"/> Note: 1.title FB can automatically read the title of the page to be shared to be set in FB sharer.php parameters You can set your own way is code as follows: <meta property= "og:title" content = "Test"/> 2.image tags can be written by multiple sharing people can choose their own pictures 3.url is your page 4.description introduction information Hint: picture pixels must be 100*100 such a format I use 90*90 is OK For example: 300*100 150* 50 in www.facebook.com picture will intercept 90x90 picture display is not correct if the picture is smaller and worse, the shared pop-up box will not show your picture This situation occurs in the picture is less than 90x90