searchPages: Search pages that mention a string

Description Usage Arguments Author(s) See Also Examples

View source: R/searchPages.R

Description

searchPages retrieves public pages that mention a given keyword

Usage

1
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.

Author(s)

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

See Also

fbOAuth, searchFacebook

Examples

1
2
3
4
5
6
7
## 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)

Rfacebook documentation built on May 1, 2019, 8:40 p.m.