【问题标题】:Duplicate Page Redirect: How do I find the connection?重复页面重定向:如何找到连接?
【发布时间】:2012-08-01 20:35:28
【问题描述】:

我正在开发一个 Facebook 应用程序,我想在其中按学校过滤用户的朋友。我遇到的问题是,学校用户的重复页面可能没有相同的页面 ID。

例如)http://www.facebook.com/pages/UT-Austin/106258719412206 将重定向到 http://www.facebook.com/UTAustinTX?rf=106258719412206

我无法找到有关如何找到这些重定向连接的任何信息。理想情况下,我希望:

  1. 如果我试图查看一个如上例那样被重定向的页面;我被重定向到的页面 ID 是什么?
  2. 如果我有页面 ID;与哪些重复的页面 ID 相关?

【问题讨论】:

  • 这些似乎无法通过 API 获得。
  • 我希望有人找到了一种方法来确定哪些 ID 相互关联。感谢您的回复。

标签: facebook duplicates facebook-fql facebook-page


【解决方案1】:

您可以尝试的一件事是图形搜索名称和理想的位置。在您的示例中,只需图形搜索名称即可提供新页面作为第一个结果。 https://graph.facebook.com/search?q=UT+Austin&type=place&access_token=YOURTOKEN

这并不理想,但我认为这是解决这个问题的唯一方法。

需要注意的几点: 您可以根据自己的情况比较域。
你的first node

{
category: "University",
description: "The University of Texas at Austin is a public research-intensive university located in Austin, Texas, United States. It is the flagship institution of the University of Texas System. Founded in 1883, its campus is approximately 0.25 miles from the Texas State Capitol in Austin. The institution has the fifth-largest single-campus enrollment in the nation, with over 50,000 undergraduate and graduate students and over 24,000 faculty and staff.The University of Texas at Austin was named one of the original eight Public Ivy institutions and was inducted into the American Association of Universities in 1929. The university is a major center for academic research, with research expenditures exceeding $640 million for the 2009–2010 school year. The university houses seven museums and seventeen libraries, including the Lyndon Baines Johnson Library and Museum and the Blanton Museum of Art, and operates various auxiliary research facilities, such as the J. J. Pickle Research Campus and the McDonald Observatory. Among university faculty are recipients of the Nobel Prize, Pulitzer Prize, the Wolf Prize, and the National Medal of Science, as well as many other awards.",
is_community_page: true,
is_published: true,
talking_about_count: 8,
website: "http://www.utexas.edu",
were_here_count: 0,
id: "106258719412206",
name: "UT Austin",
link: "http://www.facebook.com/pages/UT-Austin/106258719412206",
likes: 5143
}

有 www.utexas.edu

你的second node 也一样。

您可能可以使用is_community_page: true 作为触发器,您应该通过图形搜索查找一些等效的 ID。在所有情况下都不是这样,但是因为您正在与大学打交道,所以我想每个人(至少在美国)都有一个声称的 FB 页面,在这种情况下 is_community_page 将是错误的,或者该属性将不存在(无)。

另外,根据您的业务,您可以 MTurk 这个任务,甚至可能使用刮板。我不认为这些是大规模解决这个问题的好方法,但我建议你,因为如果你只与大学打交道,你可能负担得起 Mturk 或繁重的刮擦。

我确实确认您可以使用抓取工具来查找重定向 javascript 并解析出原始页面上的新 ID。

我知道这有点糟糕,但希望它会有所帮助

【讨论】:

    猜你喜欢
    • 2013-03-31
    • 2020-10-03
    • 1970-01-01
    • 2014-01-14
    • 1970-01-01
    • 1970-01-01
    • 2022-06-18
    • 1970-01-01
    • 2013-02-14
    相关资源
    最近更新 更多