Account-level API wrapper for Conduit.
Provides methods for managing the authenticated Facebook account, including session control, social graph actions, and account state changes.
This is a thin wrapper around the underlying FCA API (bot.ctx.api), converting callback-based methods into Promise-based interfaces.
bot.ctx.api
Accessible via client.account.
client.account
Blocks or unblocks a user.
Target user to block/unblock
true to block, false to unblock
true
false
Blocking affects messaging and visibility between accounts.
Retrieves the currently authenticated user's Facebook ID.
The user ID of the logged-in account
Responds to a friend request.
ID of the user who sent the request
true to accept, false to decline
Declining a request does not notify the sender directly.
Logs out the current session and invalidates authentication cookies.
After logout, the client instance becomes unusable until re-authenticated.
Removes a user from the authenticated account's friend list.
Target user ID
Account-level API wrapper for Conduit.
Provides methods for managing the authenticated Facebook account, including session control, social graph actions, and account state changes.
Remarks
This is a thin wrapper around the underlying FCA API (
bot.ctx.api), converting callback-based methods into Promise-based interfaces.Accessible via
client.account.