更新时间:2023-12-05 09:18:04
是。
Facebook以与Google相同的方式处理AJAX网站。具有hashbang的URL将替换为_escaped_fragment_参数。
比较以下内容:
和
确保Open Graph信息(如URL)与真实页面匹配。否则,FB会出错,就像我遇到的问题一样。
I have an application with AJAX content and I want users to be able to share URLs where the content of the page is determined by the hash/anchor portion of the URL (the stuff after '#'). That is, I want to determine the values of the opengraph tags based on the hash portion of the URL.
Google has a mechanism for this: http://code.google.com/web/ajaxcrawling … arted.html
Does Facebook?
Thanks
Yes.
Facebook handles AJAX sites the same way Google does. URLs with a hashbang are replaced with the _escaped_fragment_ parameter.
Compare the following:
and
Be sure that the Open Graph information, such as the URL, matches up with what the real page. Otherwise, FB will error, as was the issue I had.