Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live Realtime Comments #104

Open
kkm opened this issue Dec 11, 2022 · 13 comments
Open

Live Realtime Comments #104

kkm opened this issue Dec 11, 2022 · 13 comments
Labels

Comments

@kkm
Copy link

kkm commented Dec 11, 2022

Hello @Nerixyz

await ig.realtime.graphQlSubscribe(GraphQLSubscriptions.getLiveRealtimeCommentsSubscription('<broadcast-id>'));

with add listener

  ig.realtime.on('liveRealtimeComments ', logEvent('liveRealtimeComments'));

https://github.com/Nerixyz/instagram_mqtt/blob/master/examples/realtime.example.ts#L92

there was never an event and login works perfectly.

@Nerixyz
Copy link
Owner

Nerixyz commented Dec 11, 2022

with add listener

  ig.realtime.on('liveRealtimeComments ', logEvent('liveRealtimeComments'));

If that's your code, then you need to remove the space in the string: ig.realtime.on('liveRealtimeComments', logEvent('liveRealtimeComments'));. Otherwise, I can't really help since I haven't used it in a long time.

@kkm
Copy link
Author

kkm commented Dec 12, 2022

I changed it and the event never came, do you have idea?

  await ig.realtime.connect({
    graphQlSubs: [
      // these are some subscriptions
      GraphQLSubscriptions.getAppPresenceSubscription(),
      GraphQLSubscriptions.getZeroProvisionSubscription(ig.state.phoneId),
      GraphQLSubscriptions.getDirectStatusSubscription(),
      GraphQLSubscriptions.getDirectTypingSubscription(ig.state.cookieUserId),
      GraphQLSubscriptions.getAsyncAdSubscription(ig.state.cookieUserId),
    ],
    skywalkerSubs: [
      SkywalkerSubscriptions.directSub(ig.state.cookieUserId),
      SkywalkerSubscriptions.liveSub(ig.state.cookieUserId),
    ]
  });

Did I miss option something?

@kkm kkm closed this as completed Dec 12, 2022
@kkm kkm reopened this Dec 12, 2022
@kkm
Copy link
Author

kkm commented Dec 12, 2022

image
debug shows it's connecting and it never came out when I write in the live events chat

@Nerixyz
Copy link
Owner

Nerixyz commented Dec 12, 2022

Maybe the id changed, as I said I haven't looked at it in a long time.

@kkm
Copy link
Author

kkm commented Dec 15, 2022

Maybe the id changed, as I said I haven't looked at it in a long time.

Kein Problem :), Ithink I want to understand with frida, will try next years and maybe you can change for repository.
Did you work with Android Emulator or Smartphone and frida debug?

@Nerixyz
Copy link
Owner

Nerixyz commented Dec 15, 2022

Did you work with Android Emulator or Smartphone and frida debug?

I used an emulator.

@kkm
Copy link
Author

kkm commented Dec 16, 2022

I used an emulator.

Thanks and which emulator? Nox or Bluestacks or original from Android Studio?
And install directly Google Playstore or Instagram.apk separately?

@Nerixyz
Copy link
Owner

Nerixyz commented Dec 16, 2022

Thanks and which emulator? Nox or Bluestacks or original from Android Studio?

I used Genymotion, though I suppose it doesn't really matter as long as you can be root.

And install directly Google Playstore or Instagram.apk separately?

It should be installed separately.

@kkm
Copy link
Author

kkm commented Dec 20, 2022

image
I can't read, but it connects well with frida-server (16.0.8).
Maybe your code is out of date?

https://github.com/Nerixyz/instagram_mqtt/blob/master/frida/mqttListen.js#L25
How can I also find with new version?

I took the Instagram version exactly as v123.0.0.21.114

@kkm
Copy link
Author

kkm commented Jan 25, 2023

@Nerixyz
I'm not sure it needs to be patched with libger.so, right?

@Nerixyz
Copy link
Owner

Nerixyz commented Jan 25, 2023

I'm not sure it needs to be patched with libger.so, right?

That library is the http implementation for Instagram. The last time I checked, it doesn't have anything to do with mqtt.

@kkm
Copy link
Author

kkm commented Jan 27, 2023

@Nerixyz Danke, MQTT will no longer support it in the future?

@Nerixyz
Copy link
Owner

Nerixyz commented Jan 27, 2023

MQTT will no longer support it in the future?

MQTT is probably still used, but it's implemented in Java - not in a native library. You should be able to find references to it by searching for known strings in the apk file (e.g. ig/live_notification_subscribe).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants