Description Usage Arguments Details Value Author(s) Examples
This function provides an interface for Facebook search.
1 2 | search_fb(x, remDr, type = c("all", "users", "pages", "places", "groups", "apps"
, "events"), number_of_results = 5, attributes, ...)
|
x |
one length character vector (or one to be coerced): the search string. slashes should be avoided. |
remDr |
Loggend in remote driver, result of |
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 |
... |
optiional arguments passed to |
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.
found_entities |
Character vector with the links of the entities. |
remote_driver |
the browser to be passed to other functions, like |
Andras Tajti
1 2 3 | ## NOT RUN
# search_fb("R (programming language)", your_login_name, your_password)
## END NOT RUN
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.