adding facebook connect codes to a php file

I want to add a facebook connect code to one of the php files that displays my welcome message. What codes do I use? When I use the short code, it does not render.