How Can I Update My Facebook Access Token Using the REST API?
Question
How can I update my Facebook access token using the REST API?
Environment
Connector: Facebook Ads
Answer
You may be required to update your access token when it is no longer valid. To reset a Facebook access token through the REST API, do the following:
- Generate a new access token on Facebook.
- Use the REST API to retrieve the connection details.
- Use the REST API to modify the connection with a
PATCH
request.- Include all connection objects you retrieved in Step 2.
- If your connection uses System User Token (
SYSTEM_TOKEN
) authentication, update theuser_access_token
field. - If your connection uses another authentication method, update the
access_token
field.
For an example of a PATCH
request to authenticate a Facebook Ads connection, see our Create a Connection documentation.