First, check the current URL under the Facebook information situationOpen Graph Object debugger< Enter a URL to see if the current URL has Facebook information;:
https://developers.facebook.com/tools/debug/og/object/
Show existing scrape information: View your configured Facebook information
Fetch New Scrape information: Set up your Facebook message
second, set the corresponding Facebook information1. All information must be added to the page under the corresponding URL, such as www.baidu.com, must be added under Baidu's homepage
2. Facebook share a list, referring to the following URL
Https://developers.facebook.com/docs/plugins/checklist
Third, examplesFor example: Under Http://tztest4.ptmind.cn/test.htm, add Facebook to share your code.
<! DOCTYPE html>
window.open () Please refer to: http://www.w3cschool.cc/jsref/met-win-open.html
Facebook development api:https://developers.facebook.com/docs/plugins/embedded-posts
Share button: https://developers.facebook.com/docs/plugins/share-button/
Reference: http://blog.sina.com.cn/s/blog_6cd33db60100sd9j.html
Facebook share (with images)