facebook4j.api
Interface UserMethods

All Known Subinterfaces:
Facebook

public interface UserMethods

Author:
Ryuji Yamashita - roundrop at gmail.com

Method Summary
 User getMe()
          Returns the current user.
 User getMe(Reading reading)
          Returns the current user.
 URL getPictureURL()
          Returns the url of the current user's profile picture.
 URL getPictureURL(int width, int height)
          Returns the url of the current user's profile picture.
 URL getPictureURL(PictureSize size)
          Returns the url of the current user's profile picture.
 URL getPictureURL(String userId)
          Returns the url of a user's profile picture.
 URL getPictureURL(String userId, int width, int height)
          Returns the url of a user's profile picture.
 URL getPictureURL(String userId, PictureSize size)
          Returns the url of a user's profile picture.
 URL getSSLPictureURL()
          Returns the url of the current user's profile picture over a secure connection.
 URL getSSLPictureURL(PictureSize size)
          Returns the url of the current user's profile picture over a secure connection.
 URL getSSLPictureURL(String userId)
          Returns the url of a user's profile picture over a secure connection.
 URL getSSLPictureURL(String userId, PictureSize size)
          Returns the url of a user's profile picture over a secure connection.
 User getUser(String userId)
          Returns a given user, specified by ID.
 User getUser(String userId, Reading reading)
          Returns a given user, specified by ID.
 List<User> getUsers(String... ids)
          Returns the users specified by IDs.
 

Method Detail

getMe

User getMe()
           throws FacebookException
Returns the current user.

Returns:
user
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers

getMe

User getMe(Reading reading)
           throws FacebookException
Returns the current user.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
user
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers

getUser

User getUser(String userId)
             throws FacebookException
Returns a given user, specified by ID.

Parameters:
userId - the ID of the user
Returns:
user
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers

getUser

User getUser(String userId,
             Reading reading)
             throws FacebookException
Returns a given user, specified by ID.

Parameters:
userId - the ID of the user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
user
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers

getPictureURL

URL getPictureURL()
                  throws FacebookException
Returns the url of the current user's profile picture.

Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getPictureURL

URL getPictureURL(PictureSize size)
                  throws FacebookException
Returns the url of the current user's profile picture.

Parameters:
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getPictureURL

URL getPictureURL(int width,
                  int height)
                  throws FacebookException
Returns the url of the current user's profile picture.

Parameters:
width - width of the picture
height - height of the picture
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getPictureURL

URL getPictureURL(String userId)
                  throws FacebookException
Returns the url of a user's profile picture.

Parameters:
userId - the ID of a user
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getPictureURL

URL getPictureURL(String userId,
                  PictureSize size)
                  throws FacebookException
Returns the url of a user's profile picture.

Parameters:
userId - the ID of a user
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getPictureURL

URL getPictureURL(String userId,
                  int width,
                  int height)
                  throws FacebookException
Returns the url of a user's profile picture.

Parameters:
userId - the ID of a user
width - width of the picture
height - height of the picture
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getSSLPictureURL

URL getSSLPictureURL()
                     throws FacebookException
Returns the url of the current user's profile picture over a secure connection.

Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
Since:
Facebook4J 2.0.0
See Also:
User - Facebook Developers - Connections - picture

getSSLPictureURL

URL getSSLPictureURL(PictureSize size)
                     throws FacebookException
Returns the url of the current user's profile picture over a secure connection.

Parameters:
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
Since:
Facebook4J 2.0.0
See Also:
User - Facebook Developers - Connections - picture

getSSLPictureURL

URL getSSLPictureURL(String userId)
                     throws FacebookException
Returns the url of a user's profile picture over a secure connection.

Parameters:
userId - the ID of a user
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
Since:
Facebook4J 2.0.0
See Also:
User - Facebook Developers - Connections - picture

getSSLPictureURL

URL getSSLPictureURL(String userId,
                     PictureSize size)
                     throws FacebookException
Returns the url of a user's profile picture over a secure connection.

Parameters:
userId - the ID of a user
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
Since:
Facebook4J 2.0.0
See Also:
User - Facebook Developers - Connections - picture

getUsers

List<User> getUsers(String... ids)
                    throws FacebookException
Returns the users specified by IDs.

Parameters:
ids - the IDs of users
Returns:
users
Throws:
FacebookException
See Also:
Graph API#reading - Facebook Developers


Copyright © 2019. All rights reserved.