I am newbie in creating apps for Facebook and I would like to ask you about a few things.
I created my first app, in the settings I set up the domain URL, canvas URL, etc… when I load the app via apps.facebook.com/my_app_name the app is working, but also when I visit the page via the canvas URL I configured.
Is there any way to only allow access to the app only when loaded inside the Facebook chrome?
Also, in the app that I made are some links, buttons, etc. and when you hover over them with the mouse you can see my own domain in the status bar below. Is there a way to change that?
When your page is called from within Facebook it receives a
signed_requestvia$_POST. You can show the page based on that, or perhaps redirect toapps.facebook.com/yourappinstead.See also: signed_request
As for the links that show in the status bar, you need to rewrite those links to point to
apps.facebook.com/yourapp/somepage. When you do that, the link target should be set to_top.Alternatively, you could do things like this:
And then with jQuery: