Learn R Programming

Rfacebook (version 0.6.15)

getFQL: Executes a FQL query to the Facebook Graph API

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

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.

Examples

Run this code
## 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)
## ---------------------------------------------

Run the code above in your browser using DataLab