简体   繁体   English

Facebook sharer.php 500错误

[英]Facebook sharer.php 500 error

At the moment I am attempting to share a link on Facebook without the use of JavaScript or a Facebook app id. 目前,我正尝试在Facebook上共享链接,而不使用JavaScript或Facebook应用ID。

Previously I could have a hyperlink to: https://www.facebook.com/sharer/sharer.php?u=urlhere and Facebook would scrape for og:tags and allow me to share a site. 以前,我可以有一个超链接到: https://www.facebook.com/sharer/sharer.php?u=urlhere : https://www.facebook.com/sharer/sharer.php?u=urlhere u https://www.facebook.com/sharer/sharer.php?u=urlhere url此处,Facebook会抓取og:tags并允许我共享一个网站。

At the moment I'm encountering a 500 error when I attempt to submit a link that has not previously been crawled by Facebook. 目前,当我尝试提交一个Facebook以前未爬网的链接时,我遇到了500错误。

How to reproduce the bug 如何重现错误

  • Find a new link that you're certain hasn't been crawled by FB. 查找您确定尚未被FB抓取的新链接。 Good examples of this are tweets. 推文就是很好的例子。
  • Attempt to visit https://www.facebook.com/sharer/sharer.php and paste in your link 尝试访问https://www.facebook.com/sharer/sharer.php并粘贴您的链接
  • Submit the form and see the post preview 提交表格并查看帖子预览
  • Attempt to submit the post 尝试提交帖子
  • If you've used a fresh URL there is a good chance you'll get a 500 error similar to: POST https://www.facebook.com/ajax/sharer/submit_page/ 500 (Internal Server Error) 如果您使用了新的URL,则很有可能会收到类似500的错误: POST https://www.facebook.com/ajax/sharer/submit_page/ 500 (Internal Server Error)
  • If you refresh the page and attempt to submit the same URL again, it will post successfully. 如果刷新页面并尝试再次提交相同的URL,它将成功发布。
  • Once the link has been crawled by Facebook, it works without problems 链接被Facebook抓取后,它就可以正常工作

Anyone having similar problems with this method of sharing? 有人对这种共享方法有类似的问题吗?

这是有效的Facebook错误,请参阅https://developers.facebook.com/bugs/795945327148024/

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

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