从搜索中隐藏 Facebook 应用

发布于 2024-11-27 18:39:50 字数 206 浏览 4 评论 0原文

我正在将一个 iFrame 页面添加到我们的 Facebook 粉丝页面,上面有一个时事通讯注册表单,但是我被困在了一些事情上。

如果我们的粉丝页面称为 blahblah,则注册页面称为“BlahBlah Insider Info”。当我搜索 Blahblah 时,该应用程序出现在粉丝页面之前,这不太好!

我怎样才能使它不出现在搜索中并且只能从我们的粉丝页面访问?

I'm adding an iFrame page to our facebook fan page, it's got a newsletter signup form on it, however I am stuck on something.

If our fan page is called blahblah, the signup page is called "BlahBlah Insider Info". When I search for Blahblah, the app appears before the fan page, which is not good!

How can I make it so it doesn't appear in search and can only be accessed from our fan page?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

江湖正好 2024-12-04 18:39:50

目前不可能。此外,我们的搜索会考虑以前的应用程序/页面使用情况,因此根据您访问该应用程序的时间,它对您的显示顺序可能与其他人不同。

NO it's not currently possible. In addition, our search takes into account previous app/page usage so depending on when you visited the app, it may appear in a different order to you, than it does to others.

睫毛上残留的泪 2024-12-04 18:39:50

似乎无法从搜索结果中删除应用程序。

为了解决我的问题,当我检测到用户正在访问应用程序页面而不是我真正的页面选项卡时,我使用了肮脏的黑客来重定向用户。

if(isset($_SERVER['HTTP_REFERER'])){
  if(strpos($_SERVER['HTTP_REFERER'], 'apps.facebook.com') > -1){
    echo "<script type="text/javascript">
    top.location.href = 'https://www.facebook.com/_MY_PAGE_TAB_';
    </script>";
  }
}

Facebook 使用子域“apps.facebook.com”作为应用程序页面,但使用“www.facebook.com”作为页面选项卡。

它必须是 Javascript,因为如果我使用 PHP,它只会重定向 iframe 而不是完整的页面。

It's seems that it is not possible to remove an Application from the search results.

To solve my problem I used a dirty hack to redirect the user when I detected that he was accessing the Application Page and not my real Page Tab.

if(isset($_SERVER['HTTP_REFERER'])){
  if(strpos($_SERVER['HTTP_REFERER'], 'apps.facebook.com') > -1){
    echo "<script type="text/javascript">
    top.location.href = 'https://www.facebook.com/_MY_PAGE_TAB_';
    </script>";
  }
}

Facebook use the subdomain "apps.facebook.com" for the Application Pages but "www.facebook.com" for Page Tabs.

It needed to be Javascript because if I would have use PHP it would have only redirected the iframe and not the complete page.

握住你手 2024-12-04 18:39:50

我认为这种情况只发生在开发者帐户上。如果您使用其他帐户登录,您将看不到您的应用程序。正确的

i think this happens only to the developer account. if you sign in with a different account you will not see your app. correct

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文