-
Notifications
You must be signed in to change notification settings - Fork 4
api2
-
addFriend(userId: Id)
: request friend touserId
. -
addUserToThread(threadId: Id, ...userIds: Id[])
: adduserIds
to threadthreadId
. -
archived(archive: boolean, ...listId: Id[])
:-
archive
:true
toarchive
,false
to un-archive -
listId
: array id of thread or user to archive(or not)
-
-
blockMessage(id: Id)
: block messageid
(thread or user). -
blockPage(pageId: Id, isBlock: boolean = true)
: block pagepageId
, unblock ifisBlock = false
. -
blockUser(userId: Id)
: block user with IduserId
. -
bookmark(id: Id, i: number = 0)
:-
i = 0
: addid
to top of bookmark -
i = 1
: don't markid
to top of bookmark -
i = 2
: removeid
from bookmark
-
-
cancelFriend(userId: Id)
: after request friend, remove request friend. -
cancelJoinGroup(groupId: Id)
: after request join group, remove that request. -
changeBio(bio: string, limit: number = -1)
: change intro of your profile tobio
inlimit
(s), default unlimited. -
changeEmoji(threadId: Id, emoji: string)
: set emoji ofthreadId
toemoji
. -
changeNickname(nickname: string, threadId: Id, participantId?: Id)
:-
nickname
: new nickname -
threadId
: change nickname inthreadId
-
participantId
: id of participant, if don't set,participantId = threadId
-
-
createPoll(threadId: Id, title: string, options: Form)
:-
threadId
: thread to create poll -
title
: question to ask -
options
: object with key is anwser, value is choosed or not
-
-
deleteMessage(...msgIds: Id[])
:msgIds
is list id of msg to delete. -
deleteThread(...threadIds: Id[])
:threadIds
is list id of thread to delete. -
followProfile(userId: Id, isFollow: boolean = true)
: (un)followuserId
. -
forwardAttachment(attachmentId: Id, ...threadIds: Id[])
: someone send you a file, you forward it-
attachmentId
: id of file -
threadIds
: list send file to thread/user
-
-
getMyId()
: return your fbid. -
getPhotoUrl(photoId: Id)
: get url of photo has idphotoId
.
-
getUserInfo(...userIds: Id[])
: __. -
joinGroup(groupId: Id, options?: Form)
: __. -
leaveGroup(groupId: Id)
: __. -
markAsRead(...listId: Id[])
: __. -
messageRequest(isAccept: boolean, ...threadIds: Id[])
: __. -
muteThread(threadId: Id, second: number)
: __. -
pull(form: Form = {})
: __. -
removeFriend(userId: Id)
: __. -
removeMember(groupId: Id, memberId: Id, delIndexs: number[] = [])
: __. -
removeParticipant(threadId: Id, userId: Id)
: __. -
send(form: Form)
: __. -
sendMsg(msg: Message, threadId: Id)
: __. -
sendTyping(userId: Id, isTyping: boolean = true)
: __. -
setAdminThread(thread: Id, isAdmin: boolean, ...adminIds: Id[])
: __. -
setApprovalMode(threadId: Id, isNeed: boolean)
: __. -
setTitle(threadId: Id, title: string)
: __. -
shareUrl(uri: string)
: __. -
subFollow(userId: Id, isSeeFirst: boolean = true)
: __. -
unblockMessage(id: Id)
: __. -
unblockUser(userId: Id)
: __. -
undoActivityGroup(groupId: Id, activityId: Id)
: __. -
unfollowGroup(groupId: Id, isUnfollow: boolean = true)
: __. -
uploadFile(attachment: ReadStream)
: __.