How do I insert ultimate facebook connect code to any page I like with php?

I would like to insert Facebook connect as a php code to the "My Account" page template instead of using a shortcode. I would very much appreciate it if you could tell me what the php code should be.

I am using WooCommerce on a client site, on which I have installed Ultimate Facebook for letting users login via Facebook.

I would like to let users connect their Facebook accounts with their site accounts, but also would not like to present non-registered users the chance to login via Facebook.