1, a link: parameter is a link to the page to share
The code is as follows: <a style= "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); " >
tags for 2.fb identification:
The code is 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 the sharer.php parameter of FB
You can also set your own way is <meta property= "Og:title" content= "test"/> 2.image tag can write multiple sharing people can choose their own pictures
3.url is the page you want to share
4.description Introduction Information
Tips:
The picture pixel must be a format like 100*100 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 popup will not show your picture. This happens when the picture is less than 90x90. Facebook shares understanding: To share the page pass URL past, Facebook automatically crawls the required images and titles and description with this URL. The URL can be followed with the Titile parameter, with the image and description parameters invalid.
Specific implementations of Facebook share features on the web