instagram4j icon indicating copy to clipboard operation
instagram4j copied to clipboard

How to Retrieve Users I'm Following Instead of Using ID in FriendshipsFeedsRequest?

Open ahmetyildizyazilim opened this issue 1 year ago • 1 comments

I'm looking for a way to programmatically retrieve my Instagram user ID using the Instagram4j library. Currently, I'm using the following code to fetch the users I'm following: FeedUsersResponse response = client.sendRequest(new FriendshipsFeedsRequest(18428658L, FriendshipsFeedsRequest.FriendshipsFeeds.FOLLOWING)).join(); However, I need to replace 18428658L with my actual user ID. Could someone please provide guidance on how I can obtain my Instagram user ID dynamically within my Java application? Thank you.

ahmetyildizyazilim avatar Apr 16 '24 17:04 ahmetyildizyazilim

This project is unmaintained, I suggest you to check EasyInsta or JxInsta for the same work. You can ask any question in the community discussion too.

ErrorxCode avatar Apr 19 '24 17:04 ErrorxCode