Zalo User icon

Zalo User

Quản lý người dùng Zalo

Zalo User → Lấy danh sách bạn bè

AI-generated

Summary

Retrieve a list of friends for the authenticated Zalo user, limited to the specified maximum number.

Inputs

  • Limit (required) — Maximum number of friends to retrieve

Output shape

a list containing a JSON object with a "friends" array limited to the requested quantity

Returns an array of friend objects under the key "friends"; the number of friends returned will not exceed the specified limit. If the authenticated session is invalid, the operation will throw an error.

Examples

Example 1: Fetching up to 50 friends for the authorized Zalo user

Set 'Limit' to 50 to get at most 50 friends in the list.

Links

Discussion