get_user_info: Download profile data

Description Usage Arguments Details Value Note Author(s) Examples

Description

This function provides a way to get informations provided by the user on his/her Facebook profile.

Usage

1
get_user_info(user,remDr)

Arguments

user

one length character or numeric, containing the Facebook profile ID.

remDr

remote driver, a.k.a. the browser to manipulate, result e.g. login_fb

Details

The function loads the user's profile, and steps through each sections, downloading information shown on the site. The function returns subsections, each containing every item as a character string to make post-download search possible. It also downloads messages telling that the information is missing (the user can be asked for that), but links, pictures and other object will not become part of the result.

Interactive login is supported, if either user_login or user_password is missing, the function will wait until the user logs in.

Soon the function (and others) will be updated to handle more than one length character and numeric vectors within one call.

Value

user_info

A list with items corresponding to valid sections an the users "about" page: \itemOverviewsection not yet used \itemWork and EducationContains subsections as a list \itemPlaces He/She/You Lived \itemContact and Basic Info \itemFamily and Relationships \itemDetails About \itemLife Events

Names depends on the language the user set for Facebook.

remote_driver

The browser to pass to other functions, like logout_fb

Note

The language of results depends on the login user's settings

Author(s)

Andras Tajti

Examples

1
2
3
## NOT RUN
# get_user_info("Facebook_user", your_login_name, your_password)
## END NOT RUN

atajti/fbpack documentation built on May 6, 2019, 1:30 a.m.