Hide facebook app from search

只谈情不闲聊 提交于 2019-12-17 17:01:25

问题


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?


回答1:


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.




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/6904530/hide-facebook-app-from-search

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