Returns a list of public Threads media objects in which a Threads profile has been tagged by another Threads profile.
The Threads Mentions API requires an appropriate access token and permissions based on the node you are targeting. While you are testing, you can easily generate tokens and grant your app permissions by using the Graph API Explorer.
threads_basic
— Required for making any calls to all Threads API endpoints.threads_manage_mentions
— Required for making any calls to the mentions endpoint.If your app has not been approved for advanced access for the threads_manage_mentions
permission, only mentions made by a Threads tester on the app will be returned. After approval, other users' public posts will be returned.
Use the fields
parameter to specify fields you want included on any returned Threads media objects.
curl -s -X GET \ https://graph.threads.net/<THREADS_USER_ID>/mentions?fields=<LIST_OF_FIELDS>&access_token=<ACCESS_TOKEN>
A successful API call returns a JSON-formatted object containing Threads media objects.
{ "<FIELD>":"<VALUE>", ... }
This edge supports cursor-based pagination so the response will include before and after cursors if the response contains multiple pages of data. Unlike standard cursor-based pagination, however, the response will not include previous or next fields, so you will have to use the before and after cursors to construct previous and next query strings manually in order to page through the returned data set.
curl -s -X GET \ https://graph.threads.net/17841405822304914/mentions?fields=id,username&access_token=EAADd...
{ "data": [ { "id": "18038...", "username": "keldo..." }, { "id": "17930...", "username": "ashla..." }, { "id": "17931...", "username": "jaypo..." } ] }