I've attempted to use the following php code in a Joomla article to display a users Easysocial points and it isn't working:
<?php
require_once( JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php' );
$my = Foundry::user();
$points = $my->getPoints();
echo '$points';
?>
By the way, I am using the Joomla plugin called Sourcerer to insert PHP into joomla articles, and it works for other php code. Maybe I'm missing something in the code?