| Please note: We are in the process of deprecating the REST API, have added equivalent support to the Graph API for this method. You can retrieve and modify the Restrictions for your App by working with the 'restrictions' connection of the Application object |
Sets the demographic restrictions for the application. This call lets you restrict users at the application level. If you want to restrict only a portion of your application's content, use the fb:restricted-to tag instead.
If the user doesn't match the age and location requirements, then the user cannot see the application at all. If the user's age is hidden for privacy reasons, Facebook still determines whether or not the application is visible to the user.
You should make this call only as needed, when you need to set demographic restrictions. If the restrictions don't change, you don't need to make this call.
| Name | Type | Description |
|---|---|---|
| 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. |
| restriction_str | string | A JSON-encoded string of the restricting attributes. Restrictions include When specifying the When specifying the Specifying a Specifying an empty restriction_str resets all restrictions. |
This method returns true if the restrictions are successfully set.