Dokumen ini sudah diperbarui.
Terjemahan ke Bahasa Indonesia belum selesai.
Bahasa Inggris diperbarui: 9 Sep
Bahasa Indonesia diperbarui: 17 Agu

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 (opsional)

Mayoritas developer Meta menggunakan webhooks untuk mendapatkan notifikasi realtime dan mengurangi jumlah panggilan API, sehingga mengurangi perubahan pembatasan laju. Webhooks ditambahkan secara otomatis, tetapi bersifat opsional.

Untuk menerima webhooks dari Meta, Anda perlu:

  1. Membuat endpoint di server Anda untuk menerima dan memproses notifikasi HTTP ini
  2. Mengirim permintaan POST untuk berlangganan aplikasi Anda ke webhooks
  3. Mengonfigurasi webhooks di dasbor aplikasi Anda (langkahnya tercantum di bagian ini)

Untuk mengonfigurasi webhooks untuk kasus penggunaan Anda di dasbor aplikasi, ikuti langkah-langkah berikut. Langkah-langkah ini mengasumsikan Anda berada di dasbor Kasus penggunaan > Penyesuaian > Penyesuaian kasus penggunaan dan telah memilih opsi Webhooks di menu.

  1. Pilih produk - Pada menu pilihan, pilih aset, seperti Halaman dan Akun Iklan, yang ingin diberitahukan kepada Anda.
  2. Tambahkan URL Panggilan Balik Anda, endpoint yang Anda buat untuk menerima webhooks.
  3. Tambahkan token Verifikasi Anda yang akan digunakan Meta sebagai bagian dari verifikasi URL panggilan balik.
  4. Anda dapat menambahkan autentikasi klien ke proses verifikasi dengan menggeser TLS Bersama dari Tidak ke Ya. (Opsional)

Catatan: Untuk menerima notifikasi webhook, aplikasi Anda harus diterbitkan. Tinjauan Aplikasi tidak diperlukan untuk menggunakan 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: