Skip to main content
The Profile API allows you to retrieve information about the currently logged-in Facebook user. The available data depends on the permissions granted during login and the login method used (standard or limited).

Getting the Current Profile

Basic Usage

After Login

Available Profile Fields

Basic Fields

Always available with public_profile permission:

Email Field

Requires the email 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.
Requires the user_link permission:

Limited Login Fields (iOS)

When using Limited Login on iOS, additional fields become available with specific permissions:

Friends List

Requires user_friends permission:

Birthday

Requires user_birthday permission:

Age Range

Requires user_age_range permission:

Hometown

Requires user_hometown permission:

Location

Requires user_location permission:

Gender

Requires user_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

TypeScript Support

Profile Type

API Reference

Profile Methods

Profile Fields

Best Practices

  1. Always check for null - The profile may be null if the user is not logged in
  2. Handle Android email limitation - Use Graph API to fetch email on Android
  3. Request minimal permissions - Only request the permissions you actually need
  4. Cache profile data - Avoid excessive API calls by caching profile information
  5. Respect user privacy - Only display profile information that’s relevant to your app