Instagram Realtime和FBNS
入门
安装库
npm i instagram_mqtt
OR
yarn add instagram_mqtt
扩展IgApiClient
import { IgApiClient } from 'instagram-private-api' ;
import { withFbnsAndRealtime , withFbns , withRealtime } from 'instagram_mqtt' ;
// wrap the client
// ig is now IgApiClientMQTT for typescript users
const ig = withFbnsAndRealtime ( new IgApiClient ( ) ) ;
// OR if you only want fbns/realtime
const ig
1