Unlocking an additional layer of safety to your iPhone is less difficult than you might suppose. With Two-Factor Time-Based One-Time Password (TOTP) authentication, you may bolster your device's protection and other website safety without relying on 1/3-party apps. Here's how you could set it up:
Here is sample to get photo of logged in user in visualforce. Querying on user object with FullPhotoUrl field shows photo of the user in salesforce.
Visualforce page:-
Controller:-
public class Sample {
public String photoURL {get;set;}
public sample() {
photoURL = [SELECT Id, FullPhotoUrl FROM User WHERE ID =: UserInfo.getUserId()].FullPhotoUrl;
}
Visualforce page:-
<apex:page controller="Sample">
<apex:pageBlock >
<apex:image value="{!photoURL}"/>
</apex:pageBlock>
</apex:page>
Controller:-
public class Sample {
public String photoURL {get;set;}
public sample() {
photoURL = [SELECT Id, FullPhotoUrl FROM User WHERE ID =: UserInfo.getUserId()].FullPhotoUrl;
}
}