In core php 如何在社交媒体上分享产品标题、图片和描述?
In core php how to share product title,image and description on social media?
核心php如何在社交媒体上分享产品标题、图片和描述?
分享有问题。
有时会输出以前的图像或徽标或未知图像。
https://www.facebook.com/sharer.php?u={url}
https://www.facebook.com/dialog/share?app_id={app_id}&display={page_type}&href={url}&redirect_uri={redirect_url}
为了让社交网络获取图片、名称和描述,您需要向 html 页面添加一些元标记。例如。
<meta property="og:title" content="Title of the page">
<meta property="og:description" content="Some Description of it.">
<meta property="og:image" content="http://domain_dot_com/image.jpg">
<meta property="og:url" content="http://domain_dot_com//somePage.php">
还有一些社交网络(如 facebook)缓存了您的图片和 url 以使图片和加载速度更快,以防您的 post 分享给很多用户。
核心php如何在社交媒体上分享产品标题、图片和描述? 分享有问题。 有时会输出以前的图像或徽标或未知图像。
https://www.facebook.com/sharer.php?u={url}
https://www.facebook.com/dialog/share?app_id={app_id}&display={page_type}&href={url}&redirect_uri={redirect_url}
为了让社交网络获取图片、名称和描述,您需要向 html 页面添加一些元标记。例如。
<meta property="og:title" content="Title of the page">
<meta property="og:description" content="Some Description of it.">
<meta property="og:image" content="http://domain_dot_com/image.jpg">
<meta property="og:url" content="http://domain_dot_com//somePage.php">
还有一些社交网络(如 facebook)缓存了您的图片和 url 以使图片和加载速度更快,以防您的 post 分享给很多用户。