Hide facebook app from search

我是研究僧i 提交于 2019-11-28 01:59:51
DSchultz

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.

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!