Twitter API
Overview
Friendica provides the following endpoints defined in the official Twitter API reference.
Authentication is the same as described in Using the APIs.
Entities
These endpoints use the Friendica API entities.
Different behaviour
screen_name
: The nick name in Friendica is only unique in each network but not for all networks. The users are searched in the following priority: Friendica, StatusNet/GNU Social, Diaspora, pump.io, Twitter. If no contact was found by this way, then the first contact is taken.include_entities
: Default isfalse
. If set totrue
then the plain text is formatted so that links are having descriptions.
Friendica-specific return values
cid
: Contact id of the user (important forcontact_allow
andcontact_deny
)network
: network of the user
Unsupported parameters
cursor
trim_user
contributor_details
place_id
display_coordinates
include_rts
: To-Doinclude_my_retweet
: Retweets in Friendica are implemented in a different way
Implemented endpoints
-
- Unsupported parameters:
x_auth_password
x_auth_username
x_auth_mode
-
- Unsupported parameter:
x_auth_access_type
-
- Unsupported parameter:
include_email
-
- Unsupported parameters:
url
location
profile_link_color
include_entities
skip_status
-
- Additional parameter:
profile_id
(optional): Numerical id of the profile for which the image should be used, default is changing the default profile.
-
- Unsupported parameter:
display_coordinates
-
- Additional return value:
image.friendica_preview_url
: image preview url
-
- Unsupported parameters:
page
count
include_entities
-
- Unsupported parameters:
screen_name
include_entities
-
- Unsupported parameters:
geocode
lang
locale
result_type
until
include_entities
-
- Alias:
GET api/statuses/friends_timeline
- Alias:
GET api/statuses/friends
-
- Unsupported parameters:
user_id
: Favorites aren’t returned for other users than selfscreen_name
: Favorites aren’t returned for other users than self
-
- Unsupported parameters:
slug
owner_screen_name
owner_id
include_entities
-
- Unsupported parameters:
screen_name
count
-
- Unsupported parameters:
slug
name
mode
description
owner_screen_name
owner_id
-
- Unsupported parameters:
mode
description
-
- Unsupported parameters:
owner_screen_name
owner_id
slug
-
- Unsupported parameters
stringify_ids
-
- Additional parameters:
since_id
: You can use thenext_cursor
value to load the next page.max_id
: You can use the inverse of theprevious_cursor
value to load the previous page.
- Unsupported parameter:
skip_status
: No status is returned even if it isn’t set to true.
- Caveats:
cursor
trumpssince_id
trumpsmax_id
if any combination is provided.user_id
must be the ID of a contact associated with a local user account.screen_name
must be associated with a local user account.screen_name
trumpsuser_id
if both are provided (undocumented Twitter behavior).
- Will succeed but return an empty array for users hiding their contact lists.