-
-
Notifications
You must be signed in to change notification settings - Fork 191
App Request
nov matake edited this page Sep 28, 2011
·
4 revisions
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 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
# Get All Requests to Me
app_request = FbGraph::User.me(ACCESS_TOKEN).app_request!(
:message => 'Display Message',
:data => 'Any string (usually JSON data?)'
)
FbGraph::AppRequest.new(REQUEST_ID, :access_token => ACCESS_TOKEN).destroy