Learn R Programming

Rfacebook (version 0.6.15)

searchPages: Search pages that mention a string

Description

searchPages retrieves public pages that mention a given keyword

Usage

searchPages(string, token, n = 200)

Arguments

string
string or string vector containing keywords to search. When searching using multiple keywords, the returned results will be pages whose name contains all the keywords.
token
Either a temporary access token created at https://developers.facebook.com/tools/explorer or the OAuth token created with fbOAuth.
n
Maximum number of pages to return.

See Also

fbOAuth, searchFacebook

Examples

Run this code
## Not run: ------------------------------------
# ## See examples for fbOAuth to know how token was created.
# ## Searching 100 public pages that mention "facebook"
#  load("fb_oauth")
# pages <- searchPages( string="facebook", token=fb_oauth, n=100 )
## ---------------------------------------------

Run the code above in your browser using DataLab