@theophilusdev/conduit
    Preparing search index...

    Class ConduitAccountAPI

    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.

    Accessible via client.account.

    Index

    Constructors

    Methods

    • Blocks or unblocks a user.

      Parameters

      • userID: string

        Target user to block/unblock

      • block: boolean

        true to block, false to unblock

      Returns Promise<void>

      Blocking affects messaging and visibility between accounts.

    • Retrieves the currently authenticated user's Facebook ID.

      Returns string

      The user ID of the logged-in account

    • Responds to a friend request.

      Parameters

      • userID: string

        ID of the user who sent the request

      • accept: boolean

        true to accept, false to decline

      Returns Promise<void>

      Declining a request does not notify the sender directly.

    • Logs out the current session and invalidates authentication cookies.

      Returns Promise<void>

      After logout, the client instance becomes unusable until re-authenticated.

    • Removes a user from the authenticated account's friend list.

      Parameters

      • userID: string

        Target user ID

      Returns Promise<void>