} 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 { $UserCheckins = $loginradius->loginradius_get_checkins($lraccesstoken); } catch (LoginRadiusException $e) { echo ' Checkins API :- '; echo $e->getMessage() . '<br>'; } } if (in_array($UserProfileData->Provider, array('live', 'vkontakte'))) { try {