| Please note: We are in the process of deprecating the REST API, and have added equivalent support to the Graph API for this method. Please use the Graph API- User object to check the set of permissions that a user has for that application using GET /user_id?fields=permissions. |
Checks whether the user has granted your application an extended permission.
For non-desktop applications, you may pass the ID of the user on whose behalf you're making this call. If you don't specify a user with the uid parameter but you do specify a session_key, then that user whose session it is will be the target of the call.
However, if your application is a desktop application, you must pass a valid session key for security reasons. Passing a uid parameter will result in an error.
| Name | Type | Description |
|---|---|---|
| ext_perm | string | String identifier for the extended permission that is being checked for. Must be one of these permissions. |
| callback | string | Name of a function to call. This is primarily to enable cross-domain JavaScript requests using the <script> tag, also known as JSONP, and works with both the XML and JSON formats. The function will be called with the response passed as the parameter. |
| uid | int | The user ID of the user whose permissions you are checking. If this parameter is not specified, then it defaults to the session user. Note: This parameter applies only to Web applications and is required by them only if the |
Returns 1 (true) or 0 (false).