You clearly got confused between an app and a page tab.
A Facebook app is simply the app that you see with the domain apps.facebook.com, whereas a page tab is an app which is used in the context of the page and comes as www.facebook.com/page/appnumber.
You can find out more about page tabs here and implement it easily. Also here's a link about Facebook apps.