|
| 1 | +--- |
| 2 | +title: Threads |
| 3 | +description: How to add Threads |
| 4 | +--- |
| 5 | + |
| 6 | +import {Steps, Callout} from "nextra/components"; |
| 7 | + |
| 8 | +<Callout> |
| 9 | +This integration requires that you have setup a Facebook developer account already. You can start by going to the [Meta/Facebook Developer Portal](https://developers.facebook.com/apps). |
| 10 | + |
| 11 | +This is a very complex integration, and it may take some time to get it right. If you have any issues, please reach out to us on the Postiz Discord. This documentation is not yet complete sadly, because at the time of writing the Threads API seems like it's having issues. This page was written to get something up to get you started. |
| 12 | +</Callout> |
| 13 | + |
| 14 | +<Steps> |
| 15 | +### Create an app |
| 16 | + |
| 17 | +Go to the [Meta/Facebook Developer Portal](https://developers.facebook.com/apps) and click on "Create app". |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | +### Give your app a name and email |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | +### Request access to Threads |
| 27 | + |
| 28 | +Select *Access the Threads API*. |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +### Add business details, or skip |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +### Finish creating the app |
| 37 | + |
| 38 | +You should not have any extra requirements to publish and maintain access. |
| 39 | + |
| 40 | +### Configure API access |
| 41 | + |
| 42 | +On the app dashboard, Select "Access the Threads API" to begin customizing the API access. |
| 43 | + |
| 44 | +Add the "threads_content_publish" and "threads_basic" (automatically selected) to your app. |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | +### Set threads API settings |
| 49 | + |
| 50 | +* Copy your "Threads App ID", and set the postiz environment variables `THREADS_APP_ID` to this value. |
| 51 | +* Click the "Show" button next to the Threads App Secret, and set the postiz environment variable `THREADS_APP_SECRET` to this value. Note that the next box is quite small, make sure you scroll across the copy the full value. It should be 32 characters long. |
| 52 | +* Set the redirect URL to `https://postiz.example.com/integrations/social/threads` if you are running Postiz on `postiz.example.com`, or `http://localhost:4200/integrations/social/threads` if you are running on `localhost:4200`. |
| 53 | +** Note that you have to "click" the URL to make it active, otherwise the form will not save. |
| 54 | +** You can use the same value for the **Uninstall Callback URL** and **Delete Callback URL**, but note that Postiz does not support either at this time. The form will not save unless you enter something. |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | +On the dashboard view of the Facebook developers portal, make sure you click through the setup wizard to finish the step "Yes I am finished creating the app" to complete the setup. The AP may not work until you've done this. |
| 59 | + |
| 60 | +### Restart Postiz |
| 61 | + |
| 62 | +Stop Postiz if it is running, and then start it again to pick up the new environment variables. |
| 63 | + |
| 64 | +You should not try to add a Threads account to Postiz at this time. |
| 65 | + |
| 66 | +### Add the Threads account as a tester |
| 67 | + |
| 68 | +* In the sidebar go to "App roles" -> "roles". |
| 69 | +* Select the "Testers" tab. Click "Add People". |
| 70 | +* Under *Additional Roles for this App*, select *Threads Tester*. |
| 71 | +* Enter usernames of the threads users you want to test the app. Probably your own username. Note that this is probably different from your Meta developers account which is tied to Facebook. |
| 72 | + |
| 73 | +### Allow the app on your threads account |
| 74 | + |
| 75 | +* On threads.net, open your account settings; https://www.threads.net/settings/account |
| 76 | +* Open *Website permissions*, and switch to the *Invitations* tab; |
| 77 | +* If all has gone well, you should have a pending invite. Accept that invite. |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | +### Start testing |
| 82 | + |
| 83 | +* Go back to the Meta developers portal, and in the sidebar, click *Testing*, and then open the *Open Graph API Explorer*. |
| 84 | +* In the header, dropdown the API selector and change it to threads.net v1. |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | +* In the right sidebar, under *Access Token*, click *Generate Threads Access Token*. This will open a new window where you can select the Threads account you want to test with - it should be an account that accepted the earlier invite. |
| 89 | + |
| 90 | +### ...Good luck! |
| 91 | + |
| 92 | +This documentation is not yet complete sadly, because at the time of writing the Threads API seems like it's having issues. This page was written to get something up to get you started. |
| 93 | + |
| 94 | +This is a very complex integration, and it may take some time to get it right. If you have any issues, please reach out to us on the Postiz Discord. |
| 95 | + |
| 96 | +</Steps> |
| 97 | + |
0 commit comments