opensocial.Person
- Method
- opensocial.Person.Field
- opensocial.Person.Field.ID
- opensocial.Person.Field.NAME
- opensocial.Person.Field.NICKNAME
- opensocial.Person.Field.THUMBNAIL_URL
- opensocial.Person.Field.PROFILE_URL
- opensocial.Person.Field.CURRENT_LOCATION
- opensocial.Person.Field.ADDRESSES
- opensocial.Person.Field.EMAILS
- opensocial.Person.Field.PHONE_NUMBERS
- opensocial.Person.Field.ABOUT_ME
- opensocial.Person.Field.STATUS
- opensocial.Person.Field.PROFILE_SONG
- opensocial.Person.Field.PROFILE_VIDEO
- opensocial.Person.Field.GENDER
- opensocial.Person.Field.SEXUAL_ORIENTATION
- opensocial.Person.Field.RELATIONSHIP_STATUS
- opensocial.Person.Field.AGE
- opensocial.Person.Field.DATE_OF_BIRTH
- opensocial.Person.Field.BODY_TYPE
- opensocial.Person.Field.ETHNICITY
- opensocial.Person.Field.SMOKER
- opensocial.Person.Field.DRINKER
- opensocial.Person.Field.CHILDREN
- opensocial.Person.Field.PETS
- opensocial.Person.Field.LIVING_ARRANGEMENT
- opensocial.Person.Field.TIME_ZONE
- opensocial.Person.Field.LANGUAGES_SPOKEN
- opensocial.Person.Field.JOBS
- opensocial.Person.Field.JOB_INTERESTS
- opensocial.Person.Field.SCHOOLS
- opensocial.Person.Field.INTERESTS
- opensocial.Person.Field.URLS
- opensocial.Person.Field.MUSIC
- opensocial.Person.Field.MOVIES
- opensocial.Person.Field.TV_SHOWS
- opensocial.Person.Field.BOOKS
- opensocial.Person.Field.ACTIVITIES
- opensocial.Person.Field.SPORTS
- opensocial.Person.Field.HEROES
- opensocial.Person.Field.QUOTES
- opensocial.Person.Field.CARS
- opensocial.Person.Field.FOOD
- opensocial.Person.Field.TURN_ONS
- opensocial.Person.Field.TURN_OFFS
- opensocial.Person.Field.TAGS
- opensocial.Person.Field.ROMANCE
- opensocial.Person.Field.SCARED_OF
- opensocial.Person.Field.HAPPIEST_WHEN
- opensocial.Person.Field.FASHION
- opensocial.Person.Field.HUMOR
- opensocial.Person.Field.LOOKING_FOR
- opensocial.Person.Field.RELIGION
- opensocial.Person.Field.POLITICAL_VIEWS
- opensocial.Person.Field.HAS_APP
- opensocial.Person.Field.NETWORK_PRESENCE
- mbga.Person.Field
Method
opensocial.Person.getId
Parameter
None
Return value
Type |
Description |
---|---|
String |
ID |
Sample
opensocial.Person.getDisplayName
Acquires the individual's text display name. If the VIEWER cannot be identified, "Guest" is returned.
Parameter
None
Return value
Type |
Description |
---|---|
String |
Display name |
Sample
opensocial.Person.getField
Acquires data for the Person linked to the specified key.
Parameter
Name |
Type |
Description |
---|---|---|
key |
String |
Key for acquiring data. Refer to the Field class for possible values. |
opt_params |
Map.<opensocial.DataRequest.DataRequestFields|Object> |
Additional parameters passed on to requests |
Return value
Type |
Description |
---|---|
String |
Data |
Sample
opensocial.Person.isViewer
Returns whether or not this person is a logged-in user.
Parameter
None
Return value
Type |
Description |
---|---|
Boolean |
"True" if the person is a logged-in user, "false" if not. |
Sample
opensocial.Person.isOwner
Returns whether or not the person is the owner of the current page.
Parameter
None
Return value
Type |
Description |
---|---|
Boolean |
"True" if the person is the owner of the current page, "false" if not. |
Sample
opensocial.Person.Field
opensocial.Person.Field.ID
User ID. If the VIEWER cannot be identified, "-1" is returned.
opensocial.Person.Field.NAME
Not supported.
opensocial.Person.Field.NICKNAME
The user’s nickname.
opensocial.Person.Field.THUMBNAIL_URL
The URL of the user’s thumbnail image. This is the URL of the avatar on the profile page. If the VIEWER cannot be identified, a null character is returned. This URL may be changed.
opensocial.Person.Field.PROFILE_URL
The URL of the user’s profile page.
opensocial.Person.Field.CURRENT_LOCATION
Not supported.
opensocial.Person.Field.ADDRESSES
The location of the user. Prefecture only.
opensocial.Person.Field.EMAILS
Not supported.
opensocial.Person.Field.PHONE_NUMBERS
Not supported.
opensocial.Person.Field.ABOUT_ME
The user’s personal introduction.
opensocial.Person.Field.STATUS
Not supported.
opensocial.Person.Field.PROFILE_SONG
Not supported.
opensocial.Person.Field.PROFILE_VIDEO
Not supported.
opensocial.Person.Field.GENDER
The user’s gender.
opensocial.Person.Field.SEXUAL_ORIENTATION
Not supported.
opensocial.Person.Field.RELATIONSHIP_STATUS
Not supported.
opensocial.Person.Field.AGE
The user’s age.
opensocial.Person.Field.DATE_OF_BIRTH
The user’s date of birth.
opensocial.Person.Field.BODY_TYPE
Not supported.
opensocial.Person.Field.ETHNICITY
Not supported.
opensocial.Person.Field.SMOKER
Not supported.
opensocial.Person.Field.DRINKER
Not supported.
opensocial.Person.Field.CHILDREN
Not supported.
opensocial.Person.Field.PETS
Not supported.
opensocial.Person.Field.LIVING_ARRANGEMENT
Not supported.
opensocial.Person.Field.TIME_ZONE
Not supported.
opensocial.Person.Field.LANGUAGES_SPOKEN
Not supported.
opensocial.Person.Field.JOBS
Not supported.
opensocial.Person.Field.JOB_INTERESTS
Not supported.
opensocial.Person.Field.SCHOOLS
Not supported.
opensocial.Person.Field.INTERESTS
The user’s interests.
opensocial.Person.Field.URLS
Not supported.
opensocial.Person.Field.MUSIC
Not supported.
opensocial.Person.Field.MOVIES
Not supported.
opensocial.Person.Field.TV_SHOWS
Not supported.
opensocial.Person.Field.BOOKS
Not supported.
opensocial.Person.Field.ACTIVITIES
Not supported.
opensocial.Person.Field.SPORTS
Not supported.
opensocial.Person.Field.HEROES
Not supported.
opensocial.Person.Field.QUOTES
Not supported.
opensocial.Person.Field.CARS
Not supported.
opensocial.Person.Field.FOOD
Not supported.
opensocial.Person.Field.TURN_ONS
Not supported.
opensocial.Person.Field.TURN_OFFS
Not supported.
opensocial.Person.Field.TAGS
Not supported.
opensocial.Person.Field.ROMANCE
Not supported.
opensocial.Person.Field.SCARED_OF
Not supported.
opensocial.Person.Field.HAPPIEST_WHEN
Not supported.
opensocial.Person.Field.FASHION
Not supported.
opensocial.Person.Field.HUMOR
Not supported.
opensocial.Person.Field.LOOKING_FOR
Not supported.
opensocial.Person.Field.RELIGION
Not supported.
opensocial.Person.Field.POLITICAL_VIEWS
Not supported.
opensocial.Person.Field.HAS_APP
Whether or not the application has finished installing.
opensocial.Person.Field.NETWORK_PRESENCE
mbga.Person.Field
mbga.Person.Field.JOB_TYPE
The user’s occupation.
mbga.Person.Field.BLOOD_TYPE
The user’s blood type.
Revision History
- 12/2010
- Initial Release.