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?
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
来源:https://stackoverflow.com/questions/6904530/hide-facebook-app-from-search