You can create a view called view.facebook.php (instead of view.html.php), it will be called when index2.php? ..... & view = facebook is attached to the url.
or you can call die () right after your code is executed, but I need to explain that this is not ellegant?
source
to share