เอกสารนี้นี้ได้รับการอัพเดตแล้ว
คำแปลเป็น ภาษาไทย ยังไม่เสร็จสมบูรณ์
ภาษาอังกฤษที่อัพเดต: 9 ก.ย.
ภาษาไทย ที่อัพเดต: 27 ส.ค.

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 (ไม่บังคับ)

ผู้พัฒนา Meta ส่วนใหญ่ใช้ Webhooks เพื่อรับการแจ้งเตือนแบบเรียลไทม์และลดจำนวนการเรียกใช้ API ซึ่งจะช่วยให้การเปลี่ยนแปลงการจำกัดอัตราลดลง Webhooks จะถูกเพิ่มโดยอัตโนมัติ แต่คุณจะไม่ใช้ก็ได้

หากต้องการรับ Webhooks จาก Meta คุณต้องทำสิ่งต่อไปนี้

  1. สร้างตำแหน่งข้อมูลบนเซิร์ฟเวอร์ของคุณเพื่อรับและประมวลผลการแจ้งเตือน HTTP เหล่านี้
  2. ส่งคำขอ POST เพื่อให้แอพของคุณสมัครรับข้อมูล จาก Webhooks
  3. กำหนดค่า Webhooks ในแดชบอร์ดของแอพของคุณ (ตามขั้นตอนที่ระบุไว้ในส่วนนี้)

หากต้องการกำหนดค่า Webhooks สำหรับกรณีการใช้งานของคุณในแดชบอร์ดของแอพ ให้ทำตามขั้นตอนเหล่านี้ ขั้นตอนเหล่านี้จะถือว่าคุณอยู่ในแดชบอร์ด กรณีการใช้งาน > ปรับแต่ง > ปรับแต่งกรณีการใช้งาน และได้เลือกตัวเลือก Webhooks ในเมนูแล้ว

  1. เลือกผลิตภัณฑ์ - ในเมนูแบบดรอปดาวน์ ให้เลือกองค์ประกอบ เช่น เพจและบัญชีโฆษณาที่คุณต้องการรับการแจ้งเตือน
  2. เพิ่ม URL การเรียกกลับ ซึ่งเป็นตำแหน่งข้อมูลที่คุณสร้างเพื่อรับ Webhooks
  3. เพิ่มโทเค็นตรวจสอบยืนยันที่ Meta จะใช้เพื่อเป็นส่วนหนึ่งของการตรวจสอบยืนยัน URL การเรียกกลับ
  4. คุณสามารถเพิ่มการยืนยันตัวตนลูกค้าในกระบวนการยืนยันตัวตนได้โดยเลื่อนเพื่อเปลี่ยน Mutual TLS จาก ไม่ เป็น ใช่ (ไม่บังคับ)

หมายเหตุ: หากต้องการรับการแจ้งเตือน Webhook คุณจะต้องเผยแพร่แอพ คุณไม่จำเป็นต้องตรวจสอบแอพเพื่อใช้ 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: