Skip to content

Commit a4afd2a

Browse files
author
Craig Walls
committed
Fix references to FacebookProfile in documentation. SOCIALFB-183
1 parent 02faa1e commit a4afd2a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/manual/src/asciidoc/index.adoc

+7-7
Original file line numberDiff line numberDiff line change
@@ -220,18 +220,18 @@ For complete details on all of the operations available, refer to the JavaDoc.
220220
You can retrieve the authenticated user's Facebook profile data using the `Facebook#userOperations.getUserProfile()` method:
221221

222222
```java
223-
FacebookProfile profile = facebook.userOperations().getUserProfile();
223+
User profile = facebook.userOperations().getUserProfile();
224224
```
225225

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.
227227
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.
228228
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.
230230

231231
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()`:
232232

233233
```java
234-
FacebookProfile profile = facebook.userOperations().getUserProfile("4");
234+
User profile = facebook.userOperations().getUserProfile("4");
235235
```
236236

237237

@@ -248,13 +248,13 @@ This returns a list of Facebook IDs belonging to the current user's list of frie
248248
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:
249249

250250
```java
251-
FacebookProfile firstFriend = facebook.userOperations().getUserProfile(friendIds.get(0));
251+
User firstFriend = facebook.userOperations().getUserProfile(friendIds.get(0));
252252
```
253253

254-
Or you can get a list of user's friends as `FacebookProfile` by calling `getFriendProfiles()`:
254+
Or you can get a list of user's friends as `User` by calling `getFriendProfiles()`:
255255

256256
```java
257-
List<FacebookProfile> friends = facebook.friendOperations().getFriendProfiles();
257+
List<User> friends = facebook.friendOperations().getFriendProfiles();
258258
```
259259

260260
Facebook also enables users to organize their friends into friend lists.

0 commit comments

Comments
 (0)