谷歌分享和Facebook分享者没有通过信息

时间:2014-03-07 16:12:02

标签: facebook iis google-plus

我在IIS上运行MVC应用程序。 在Facebook(https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Ftn.hollaroo.com%2Fcontent%2Faux%2Fhollaroo%2Findex.html)或Google +(https://plus.google.com/share?url=http://tn.hollaroo.com/content/aux/hollaroo/index.html)上共享网址时,它适用于STATIC.html 当我试图用tn.hollaroo.com/terms做同样的事情 - 没有元数据(标题,描述,图像)被拉过来。 index.html是一个“查看源+另存为html”的/ terms副本,所以我怀疑错误是在HTML本身。 标题部分如下

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml"
itemscope itemtype="http://schema.org/Article">

<head runat="server">
    <meta charset="utf-8" />
    <title></title>

<meta itemprop="name" content="Hollaroo Trusted Network">
<meta property="og:description" content="The Trusted Network ...">
<meta name="description" content="The Trusted Network ..." />
<meta property="og:title" content="Hollaroo Trusted Network" />
<meta property="og:type" content="website" />
<meta property="og:image" content="http://tn.hollaroo.com/content/aux/hollaroo/images/posting.jpg" />
<meta property="og:site_name" content="Hollaroo - Private Social Recruitment Networks" />

就在那里。 我已经运行了CURL,主要区别在于我发现我正在尝试设置cookie:

~# curl -I http://tn.hollaroo.com/terms
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 26085
Content-Type: text/html; charset=utf-8
Set-Cookie: ASP.NET_SessionId=wscxgkryniqa0qd3dmukjpxe; path=/; HttpOnly
Date: Fri, 07 Mar 2014 16:03:09 GMT

~# curl -I http://tn.hollaroo.com/content/aux/hollaroo/index.html
HTTP/1.1 200 OK
Cache-Control: public
Content-Length: 26400
Content-Type: text/html
Last-Modified: Fri, 07 Mar 2014 15:44:21 GMT
Accept-Ranges: bytes
ETag: "e076f21b1c3acf1:0"
Date: Fri, 07 Mar 2014 16:03:32 GMT

/ terms url不需要登录。 根据我的IIS日志和我自己的应用程序登录 - 我确实得到了来自Facebook的点击,我确实返回数据: IIS LOG:

2014-03-07 15:05:44.590 / terms - “D:\ WEBS \ Edge \ terms”200“DEMO1” - 0 0 225   2014-03-07 15:05:54.605 / terms fb_locale = en_GB“D:\ WEBS \ Edge \ terms”200“DEMO1” - 0 0 267

  Url   UserId  IPAddress   Browser At
/terms  NULL    173.252.100.117 facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)   2014-03-07 15:05:44.263
/terms?fb_locale=en_GB  NULL    173.252.100.113 facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)   2014-03-07 15:05:54.387  

我不会禁止网络抓取工具或阻止fb的IP。

非常感谢你的帮助!

0 个答案:

没有答案