$UserGetStatus = ''; $UserPostStatus = ''; $UserVideos = ''; $UserLikes = ''; $post_status = ''; $sendmessage = ''; try { $UserProfileData = $loginradius->loginradius_get_user_profiledata($lraccesstoken); } catch (LoginRadiusException $e) { echo ' User Profile Data API :- '; echo $e->getMessage() . '<br>'; } if (!empty($UserProfileData) && is_object($UserProfileData)) { if (in_array($UserProfileData->Provider, array('foursquare'))) { try { $UserPhotos = $loginradius->loginradius_get_photos($lraccesstoken); } catch (LoginRadiusException $e) { echo ' Photo API :- '; echo $e->getMessage() . '<br>'; } } if (in_array($UserProfileData->Provider, array('facebook', 'google', 'live', 'vkontakte', 'renren'))) { try { $UserPhotoalbums = $loginradius->loginradius_get_photo_albums($lraccesstoken); } catch (LoginRadiusException $e) { echo ' Photo Albums API :- '; echo $e->getMessage() . '<br>'; } } if (in_array($UserProfileData->Provider, array('foursquare', 'vkontakte'))) { try {
<?php include_once 'config.php'; include_once 'LoginRadius_functions.php'; include_once 'LoginRadiusSDK.php'; if (!isset($_REQUEST['lrphotoid']) || !isset($_REQUEST['lraccesstoken'])) { die; } $lrphoto = $_REQUEST; $loginradius = new LoginRadius(); try { $Userphotos = $loginradius->loginradius_get_photos($lrphoto['lraccesstoken'], $lrphoto['lrphotoid']); } catch (LoginRadiusException $e) { die('<div id="Error">' . $e->getMessage() . '</div>'); } if (!empty($Userphotos)) { ?> <h2>photos</h2> <table class="gridtable" cellspacing="0"> <thead> <tr> <th><?php echo 'ID'; ?> </th> <th><?php echo 'AlbumId'; ?> </th> <th><?php echo 'OwnerId';