searchPages function

Search pages that mention a string

Search pages that mention a string

searchPages retrieves public pages that mention a given keyword

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.

Examples

## 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 ) ## End(Not run)

Author(s)

Pablo Barbera pablo.barbera@nyu.edu , Joel Gombin joel.gombin@gmail.com

See Also

fbOAuth, searchFacebook