Socket
Socket
Sign inDemoInstall

azsa

Package Overview
Dependencies
146
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    azsa

New Unoffical Facebook API


Version published
0
Maintainers
1
Install size
10.1 MB
Created
Weekly downloads
 

Readme

Source

Hướng dẫn cơ bản

Tạo file .env

USER_AGENT=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
COOKIE=
SELF_FACEBOOK_ID=

index.ts

import { listen, UserConnectOptions } from 'azsa'
import config from './config'
import log from './utils/log'

const { userData } = config

if (!(userData.userAgent && userData.cookie && userData.selfFacebookID)) {
  log('error', 'Invalid user data.', JSON.stringify(userData))
  process.exit()
}

const User: UserConnectOptions = {
  userAgent: userData.userAgent,
  cookie: userData.cookie,
  selfFacebookID: parseInt(userData.selfFacebookID, 10),
}

listen(User, (message, Api) => {
  log('info', message.text)
})

API

azsa.listen

API Documentation

Azsa.listen (message, Api)

  1. message props
  • Event TypeFieldDescription

Keywords

FAQs

Last updated on 18 Nov 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc