Hello! In order to develop an EasySocial app I wanted to first test out the EasySocial functions in the
http://stackideas.com/docs/easysocial/developers/ directory. So i copied the Retrieving User's Name code and made a php file in my website's localhost to try it out. But when I executed the php file I got the
Unauthorized Access error. I don't know how to solve this and if this has to do with joomla or easysocial. I would appreciate any help. Please note I haven't done this before so I would appreciate that you don't assume I already know anything. Here is the code I used:
<html>
<body>
<?php
require_once('C:\wamp\www\inhinito\components\com_easysocial\easysocial.php');
$my = ES::user();
echo $my->getName();
echo "hello world";
// Shorter way of writing it
echo ES::user()->getName();
// Getting another person's name
echo ES::user($id)->getName();
$path = getcwd();
echo "Your Absoluthe Path is: ";
echo $path;
?>
</body>
</html>