Copy CodeThe code is as follows:
Digression: Jump directly to the share button on the Facebook login page:
The URL is: http://www.facebook.com/sharer.php?u=www.baidu.com&t=123213123
The u parameter is the link you want to share. The T parameter is not yet clear what it is.
Facebook Share feature implementation:
Share page settings
1. A link: parameter is a link to the page to be shared
Copy CodeThe code is as follows:
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:
Copy CodeThe code is as follows:
<title>Test</</span>title></title>
Attention:
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
Copy CodeThe code is as follows:
2.image tags can be written by 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 less, the shared popup will not show your picture. This happens when the picture is less than 90x90.
http://www.bkjia.com/PHPjc/728112.html www.bkjia.com true http://www.bkjia.com/PHPjc/728112.html techarticle Copy the code as follows: Span style= "Font-family:verdana, Arial, Helvetica, Sans-serif; word-wrap:normal; word-break:normal; Lin e-height:19.5px; " Span style= "Word-wrap:normal ...