共享“私人”内容时出现问题脸书上的网站
我有一个网站,您只有登录后才能访问。
我希望能够在其上共享一些产品,但是当我单击共享按钮时,它不会共享该特定项目,而是共享主站点的内容。
就像这样,一个例子:
主站点:www.xyz.com 主站点标题:xyz.com 主站点描述:站点 xyz
产品站点:www.xyz.com/product_b.php 产品页面标题:产品B 产品页面描述:看看这个神奇的产品
当我点击产品页面上的共享按钮时,它不是共享产品信息,而是共享主站点信息...我猜这与成为私人站点有关...
我'我使用 addthis.com 按钮来执行此操作,但当我尝试直接在 facebook 上执行此操作时,结果是一样的...
有关如何解决此问题的任何想法吗?
谢谢, 路易斯
I have a website that you can only access after login.
I want to be able to share some products on it, but when I click the share button, instead of sharing that particular item, it shares the the content for the main site.
It's like this, an example:
Main Site: www.xyz.com
Main site title: xyz.com
Main site description: site xyz
Product Site: www.xyz.com/product_b.php
Product page title: Product B
Product page description: check out this amazing product
When I click the share button on the product page, instead of sharing the product information, it shares the main site information... I guess it's related to being a private site...
I'm using addthis.com buttons to do it, but it's the same when I try to do it directly on facebook...
any ideas on how to solve this?
Thanks,
Luis
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果未经授权的用户将被重定向到“主站点”,那么显然 Facebook(当尝试获取共享页面的详细信息时)将被重定向到相同的站点页面也!
从文档中:
所以你可以捕获这个并允许 Facebook scraper 访问,但我真的不认为你应该这样做(道德上)。相反,创建一个公共页面对于每个产品,都会显示最少的数据,并鼓励用户注册以查看完整的产品页面!
只是附注(提醒),请始终使用 开放图元标签。
If a non-authorized user will be redirect to the "main site" then obviously Facebook (when trying to get the details of the shared page) will be redirected to the same page too!
From the documentation:
So you may capture this and allow access for Facebook scraper, but I really don't think you should do this (ethically). Instead, make a public page for each product were minimal data is shown and encourage users to register to view the full product page!
Just a side note (a reminder), always use the Open Graph meta tags.