How do you do this? (for example on user-page.php.tpl
php print flag_create_link('follow', $node->uid);
but this is not working, i see it must be something more custom like bellow, (but not working, variable not exposed where i need it). Probably there is other way to create it in template file?
php flag_create_link('follow', $heartbeatActivity->uaid);