search_fb: Search for profile links on Facebook

Description Usage Arguments Details Value Author(s) Examples

Description

This function provides an interface for Facebook search.

Usage

1
2
search_fb(x, remDr, type = c("all", "users", "pages", "places", "groups", "apps"
  , "events"), number_of_results = 5, attributes, ...)

Arguments

x

one length character vector (or one to be coerced): the search string. slashes should be avoided.

remDr

Loggend in remote driver, result of login_fb

type

one length charactr vector, one of "all", "users", "pages", "places", "groups", "apps", "events", defaults to "all". Entity tipe, to filter search on Facebook.

number_of_results

one length numeric vector, maximum number of profiles one wants as result.

attributes

optional, named list or vector with search filter to be used in case of user search. Filters I encountered are Location, Workplace, Education, Mutual friends.

...

optiional arguments passed to remoteDriver to handtune browser.

Details

The function searches for a given string with a given type. Ordering and quality of the results depends on Facebook's algorithm.

location, education and workplace are typed into the search fields, and if there is any, the first offered string will be chosen.

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

The attributes argument must be a named list or vector, with names chosen from the given list, or any other filter type which occurs on Facebook.

Value

found_entities

Character vector with the links of the entities.

remote_driver

the browser to be passed to other functions, like logout_fb

Author(s)

Andras Tajti

Examples

1
2
3
## NOT RUN
# search_fb("R (programming language)", your_login_name, your_password)
## END NOT RUN

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