Skip to content
nov matake edited this page Sep 28, 2011 · 4 revisions

App Request

You can get the user’s requests which are sent before.
To send requests, you need JS SDK.

For more details, read the official document about it.
http://developers.facebook.com/docs/reference/dialogs/requests/

GET

# Get All Requests to Me
FbGraph::User.me(ACCESS_TOKEN).app_requests

# Get Specific Request to me
FbGraph::AppRequest.new(REQUEST_ID, :access_token => ACCESS_TOKEN).fetch

POST

# Get All Requests to Me
app_request = FbGraph::User.me(ACCESS_TOKEN).app_request!(
  :message => 'Display Message',
  :data => 'Any string (usually JSON data?)'
)

DELETE

FbGraph::AppRequest.new(REQUEST_ID, :access_token => ACCESS_TOKEN).destroy
Clone this wiki locally