Getting the Current Profile
Basic Usage
After Login
Available Profile Fields
Basic Fields
Always available withpublic_profile permission:
Email Field
Requires theemail permission:
On Android, the
email field is not available in the Profile object even when the email permission is granted. This is a limitation of the Android Facebook SDK. To get the email on Android, use the Graph API instead.Profile Link
Requires theuser_link permission:
Limited Login Fields (iOS)
When using Limited Login on iOS, additional fields become available with specific permissions:Friends List
Requiresuser_friends permission:
Birthday
Requiresuser_birthday permission:
Age Range
Requiresuser_age_range permission:
Hometown
Requiresuser_hometown permission:
Location
Requiresuser_location permission:
Gender
Requiresuser_gender permission:
Profile Image Handling
Displaying Profile Picture
The profile picture URL uses default dimensions (100x100 on iOS). For custom sizes, use the Graph API.
Platform Differences
Android Limitations
Complete Examples
- Profile Display Component
- Login and Profile Hook
TypeScript Support
Profile Type
API Reference
Profile Methods
Profile Fields
Best Practices
- Always check for null - The profile may be null if the user is not logged in
- Handle Android email limitation - Use Graph API to fetch email on Android
- Request minimal permissions - Only request the permissions you actually need
- Cache profile data - Avoid excessive API calls by caching profile information
- Respect user privacy - Only display profile information that’s relevant to your app