简体   繁体   English

Facebook分享不显示描述和图像

[英]Facebook Share Not Showing Description and Image

I have working with a project and i added a share button to product page, when i click on share it only showing the link of the site on fb share box no other infos showing my home page can share successfully 我正在使用一个项目,我添加了一个分享按钮到产品页面,当我点击分享它只显示该网站的链接在fb共享框没有其他信息显示我的主页可以成功共享

this is ok 还行吧

http://smartbetty.com http://smartbetty.com

i added some og tags but no luck 我添加了一些og标签,但没有运气

here is my issue url 这是我的问题网址

http://smartbetty.com/index.php/frontend/campaigns/single/882/Fantastic-Deal-24-for-a-Stunning-Pair-of-Pearls-Meet-Silver-Drop-Earrings-Valued-at-150

and when i debug it on face book debugger it gives follow results 当我在面书调试器上调试它时,它会给出以下结果

https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fsmartbetty.com%2Findex.php%2Ffrontend%2Fcampaigns%2Fsingle%2F882%2FFantastic-Deal-24-for-a-Stunning-Pair-of-Pearls-Meet-Silver-Drop-Earrings-Valued-at-150

i play this with hours but no luck have any one know whats the wrong with this thank you 我玩了几个小时,但没有运气,任何人都知道这是错的,谢谢你

The debugger's response is quite clear, isn't it? 调试器的响应非常清楚,不是吗?

URL requested a HTTP redirect, but it could not be followed. URL请求HTTP重定向,但无法遵循。

Your page sends a 302 redirect – to the same adress! 您的页面发送302重定向 - 到同一个地址! And if that is followed, it's the same redirect again … and again … and again. 如果接下来,那就是同样的重定向......再次......再次。

How do you expect any tool to extract data from a page that behaves like that …? 您如何期望任何工具从行为类似的页面中提取数据?

Since it's not doing that when requesting the page in a “real” browser, you're obviously messing things up on the server side somehow – maybe trying to set a cookie, and then redirect to the same adress, expecting to have the cookie value to work with (which you don't have with a tool like FB's scraper that doesn't accept or send cookies), or something like that … 由于在“真实”浏览器中请求页面时没有这样做,你显然在某种程度上在服务器端弄乱了一些东西 - 可能试图设置一个cookie,然后重定向到同一个地址,期望获得cookie值使用(你没有像FB的刮刀那样不接受或发送cookie的工具),或类似的东西......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM