You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User profile = facebook.userOperations().getUserProfile();
224
224
```
225
225
226
-
The `FacebookProfile` object will contain basic profile information about the authenticating user, including their first and last name and their Facebook ID.
226
+
The `User` object will contain basic profile information about the authenticating user, including their first and last name and their Facebook ID.
227
227
Depending on what authorization scope has been granted to the application, it may also include additional details about the user such as their email address, birthday, hometown, and religious and political affiliations.
228
228
For example, `getBirthday()` will return the current user's birthday if the application has been granted "user_birthday" permission; null otherwise.
229
-
Consult the JavaDoc for `FacebookProfile` for details on which permissions are required for each property.
229
+
Consult the JavaDoc for `User` for details on which permissions are required for each property.
230
230
231
231
You can also ask for a Facebook profile for a specific Facebook user (not necessarily the authenticated user) by passing a user ID (or Facebook alias) to `getUserProfile()`:
User profile = facebook.userOperations().getUserProfile("4");
235
235
```
236
236
237
237
@@ -248,13 +248,13 @@ This returns a list of Facebook IDs belonging to the current user's list of frie
248
248
This is just a list of String IDs, so to retrieve an individual user's profile data, you can turn around and call `getUserProfile()`, passing in one of those IDs to retrieve the profile data for an individual user:
0 commit comments