【问题标题】:How to redirect to a Facebook fanpage with ID of fanpage?如何重定向到带有粉丝页面 ID 的 Facebook 粉丝页面?
【发布时间】:2012-02-29 05:13:11
【问题描述】:

我有一个 facebook 粉丝专页的 ID,而且只有 ID。我必须建立哪个链接才能重定向到这个粉丝专页?

【问题讨论】:

标签: facebook facebook-page


【解决方案1】:

如果您只想要将您带到粉丝页面本身的链接,您可以使用:

http://facebook.com/ANY_FACEBOOK_ID

它适用于任何 Facebook ID,无论页面、用户、应用程序

更新:
正如 cmets 对其他答案所讨论的那样,上述链接存在一些缺点:

  • 这绝不是官方方式,也没有记录,因此它可能会在没有任何通知的情况下停止工作...
  • 任何传递给此链接的参数在重定向到页面时都会被删除。 (使用 http://facebook.com/PAGEID?sk=notes 不会重定向到 Notes 应用程序)

因此,如果您不仅需要将用户引导至页面本身,还需要将用户引导至页面上的应用程序,您可以使用如下链接:

http://facebook.com/pages/-/PAGEID?sk=app_APPID

【讨论】:

    【解决方案2】:

    当您使用对象 ID(用户、页面..组...等)查询图形时:

    https://graph.facebook.com/40796308305
    {
       "id": "40796308305",
       "name": "Coca-Cola",
       "picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/157930_40796308305_262497158_s.jpg",
       "link": "https://www.facebook.com/coca-cola",
       "likes": 40005128,
       "category": "Food/beverages",
       "is_published": true,
       "website": "http://www.coca-cola.com",
       "username": "coca-cola",
       "founded": "1886",
       "description": "Created in 1886 in Atlanta, Georgia, by Dr. John S. Pemberton, Coca-Cola was first offered as a fountain beverage at Jacob's Pharmacy by mixing Coca-Cola syrup with carbonated water. \n\nCoca-Cola was patented in 1887, registered as a trademark in 1893 and by 1895 it was being sold in every state and territory in the United States. In 1899, The Coca-Cola Company began franchised bottling operations in the United States. \n\nCoca-Cola might owe its origins to the United States, but its popularity has made it truly universal. Today, you can find Coca-Cola in virtually every part of the world.",
       "about": "The Coca-Cola Facebook Page is a collection of your stories showing how people from around the world have helped make Coke into what it is today.",
       "location": {
          "latitude": -33.816989983333,
          "longitude": 150.84844081667
       },
       "can_post": true,
       "checkins": 78,
       "talking_about_count": 583000
    }
    

    直接查询 Facebook 也会重定向到“object”页面:

    https://www.facebook.com/40796308305 --> https://www.facebook.com/cocacola  
    https://www.facebook.com/579187142  --> https://www.facebook.com/ifaour
    

    然而,这不是官方方式。所以我不确定这是否会在未来停止工作。

    【讨论】:

    • 是的,这可能随时停止工作,并且无论如何使用它都有缺点,因为您无法以这种方式重定向到页面选项卡或传递任何参数...
    • 当然你不能重定向到页面标签..等但这真的不是问题,因为如果应用程序要在多个页面上使用......开发人员应该查询页面ID添加选项卡时返回,然后将页面 link 与 id 一起保存。
    • 我的意思是你不能直接进入像http://facebook.com/9445547199?sk=notes这样的页面中的标签(但是这个工作http://facebook.com/pages/-/9445547199?sk=notes
    • 但同样,这也可能会停止工作,因为您缺少页面标题。好吧,至少你现在可以链接到标签了:)
    猜你喜欢
    • 2013-10-24
    • 1970-01-01
    • 2023-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-03
    • 2011-04-05
    相关资源
    最近更新 更多