getFQL: Executes a FQL query to the Facebook Graph API

Description Usage Arguments Author(s) Examples

View source: R/getFQL.R

Description

getFQL connects to Facebook's Graph API and executes a FQL query. See https://developers.facebook.com/docs/technical-guides/fql/ for an overview of the Facebook Query Language.

Usage

1
getFQL(query, token)

Arguments

query

Text of query

token

Either a temporary access token created at https://developers.facebook.com/tools/explorer or the OAuth token created with fbOAuth.

Author(s)

Pablo Barbera pablo.barbera@nyu.edu

Examples

1
2
3
4
5
6
7
## Not run: 
## See examples for fbOAuth to know how token was created.
## Getting list of friends of authenticated user
load("fb_oauth")
d <- getFQL("SELECT uid2 FROM friend WHERE uid1=me()", token=fb_oauth)

## End(Not run)

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