Este documento se ha actualizado.
La traducción en Español (España) no está disponible todavía.
Actualización del documento en inglés: 9 sep.
Actualización del documento en Español (España): 10 jun.

Customize a Meta app with the Access the Threads API Use Case

This document shows you how to customize the Access the Threads API use case you added to your app during the app creation process.

Customize use cases

  1. If you are not already on the Use cases page of the dashboard, click Use cases, or the pencil icon, in the left-side menu.
  2. Click on a use case to view the permissions that are available, both required and optional, for this use case.
  3. Click the Add button to the right of each permission you'd like to add. If, during development, you find that your app doesn't use the permission, you can return here and remove it.

Threads API use cases permissions

The following table shows the permissions available for the Threads API use case.

PermissionUsageAllowed actions

threads_basic

Required

Cannot be removed.

threads_content_publish

Optional.

Can be added or removed.

threads_delete

Optional.

Can be added or removed.

threads_keyword_search

Optional.

Can be added or removed.

threads_location_tagging

Optional.

Can be added or removed.

threads_manage_insights

Optional.

Can be added or removed.

threads_manage_mentions

Optional.

Can be added or removed.

threads_manage_replies

Optional.

Can be added or removed.

threads_read_replies

Optional.

Can be added or removed.

You can add and remove permissions at any time during the development process.

Settings

  1. In the left side menu, click Settings. You'll find your Threads app ID and Threads app secret.
  2. Add the following URLs:
    • Client OAuth Settings – valid OAuth redirect URIs
    • Deauthorize callback URL – the URL Meta will ping when a user deauthorizes your app
    • Data Deletion Requests URL – the URL Meta will ping when someone requests that you delete their data
  3. Click Save.
  4. Click the Add or Remove Threads Test Users to add testers to your app. The page will refresh to the App roles > Roles page in the dashboard.
  5. Click the Add People button to add people as to one or more of the following app roles:

    • Adminstrator
    • Developers
    • Testers
    • Analytics Users
    • Threads Testers

Webhooks (opcional)

La mayoría de los desarrolladores de Meta utilizan webhooks para recibir notificaciones en tiempo real y reducir el número de llamadas a la API, lo que reduce el cambio de la limitación de frecuencia. Los webhooks se añaden de forma automática, pero son opcionales.

Para recibir webhooks de Meta, debes hacer lo siguiente:

  1. Crear un extremo en el servidor para recibir y procesar estas notificaciones HTTP.
  2. Enviar una solicitud POST para suscribir la aplicación a los webhooks.
  3. Configurar los webhooks en el panel de la aplicación (el paso que se indica en esta sección)

Para configurar los webhooks para tu caso de uso en el panel de la aplicación, sigue estos pasos. En estos pasos, se presupone que estás en el panel Casos de uso > Personalizar > Personaliza el caso de uso y que has seleccionado la opción Webhooks en el menú.

  1. Selecciona el producto: en el menú desplegable, selecciona los activos, como “Página” y “Cuenta publicitaria”, sobre los que quieres recibir notificaciones.
  2. Añade la URL de devolución de llamada; es decir, el extremo que has creado para recibir los webhooks.
  3. Añade el identificador de verificación que Meta utilizará como parte de la verificación de la URL de devolución de llamada.
  4. Puedes añadir la autenticación del cliente al proceso de verificación. Para ello, cambia TLS mutuo de “No” a . (Opcional)

Nota: Para recibir notificaciones de webhooks, la aplicación debe estar publicada. No es necesario que superes la revisión de la aplicación para usar webhooks.

Testing (Optional)

Testing is only required if you are submitting your app for App Review; if your app will access data you don't own or manage.

  1. Click Testing in the left-side menu if you are ready to test your configuration.

Publish

Note: Some use cases require your app to be published.

  1. When you are ready to publish, select Publish in the left side menu.
  2. Review your use cases and requirements.
  3. Click Publish in the lower right corner.

If you would like to become a Tech Provider click Become a Tech Provider.

For Tech Providers

The following steps must be completed if you're a Tech Provider, your app will serve clients or other business portfolios.

App Review

  1. Click the chevron next to each requirement listed under Prepare and submit for App Review. You must complete each requirement before publishing your app.

A checkmark within a circle appears when each of these requirements has been completed.

Learn more about App Review.

Publish your app

  1. Click the chevron to the right of Check that all requirements are met, then publish your app. If any requirements have not yet been met, messaging will appear and you will need to satisfy those requirements.
  2. Once you have successfully completed all the requirements, click Publish in the lower-right corner.

After your app has been published, the Dashboard will show App Health with Daily API Calls.

See Also

Visit the following to learn more about the app development process: