FBBotKit rewrites the API requests and response models for Facebook Page, aiding developers in the seamless implementation of applications related to the Facebook Page API.
π Homepage
npm install @hungs20/fbbotkit
const bot = new FBBotKit({
pageAccessToken: "",
pageId: "",
pageName: "",
apiVersion: "18.0"
});
bot.setMessengerProfile(request: MessengerProfile)
bot.setPersonal(request: PersonalProfile)
bot.deletePersonal(id: string)
bot.sendMessage(request: SendRequest)
bot.sendTextMessage(recipientId: string, text: string)
bot.sendAttachmentMessage(recipientId: string, type: 'image' | 'video' | 'audio' | 'file', url: string)
bot.sendTemplateGeneric(recipientId: string, elements: ElementPayload[])
bot.sendQuickReplies(recipientId: string, text: string, elements: SendQuickReply[])
π€ Chu Hung
- Website: https://chuhung.net
- Github: @Hungs20
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a βοΈ if this project helped you!