# Retrieve Information from Facebook Workplace

To retrieve information from Facebook Workplace, create a new fetch task by following these steps. The connector runs fetch tasks automatically, based on the schedule that is configured in the configuration file.

To create a new Fetch Task

1. Stop the connector.
2. Open the configuration file in a text editor.

3. In the `[FetchTasks]` section of the configuration file, specify the number of fetch tasks using the `Number` parameter. If you are configuring the first fetch task, type `Number=1`. If one or more fetch tasks have already been configured, increase the value of the `Number` parameter by one (1). Below the `Number` parameter, specify the names of the fetch tasks, starting from zero (0). For example:

       [FetchTasks]
       Number=1
       0=MyTask

4. Below the `[FetchTasks]` section, create a new TaskName section. The name of the section must match the name of the new fetch task. For example:

       [FetchTasks]
       Number=1
       0=MyTask

       [MyTask]

1. In the new section, set the following configuration parameters.

   `AccessToken` | The access token provided by Facebook. (An administrator must create a "custom integration" on the Facebook Workplace).
   `AppSecret` | The app secret provided by Facebook. (An administrator must create a "custom integration" on the Facebook Workplace).
   `ProxyHost` | (Optional) The proxy server to use to access Facebook Workplace.
   `ProxyPort` | (Optional) The port of the proxy server to use to access Facebook Workplace.

2. (Optional) Facebook data is stored in a graph structure. You can use the following parameters to choose the starting point from which the connector crawls the graph.

   `RootID` | The ID of the root object. You can specify the ID of a community, a group, or a member.
   `RootType` | The object type for the node specified by `RootID`. You can specify "community", "group", or "member".

3. (Optional) You can set the parameters `CommunityExpansions`, `GroupExpansions`, `MemberExpansions`, and `PostExpansions` to choose the information to synchronize. These parameters specify what type of links to follow from nodes that represent communities, groups, members, and posts, respectively.

   For example, to retrieve all group and member posts, and their attachments, set the following values:

       CommunityExpansions=groups,members
       GroupExpansions=posts
       MemberExpansions=posts
       PostExpansions=comments,attachments

4. Save and close the configuration file.

_FT_HTML5_bannerTitle.htm