instagram4j
instagram4j copied to clipboard
How to Retrieve Users I'm Following Instead of Using ID in FriendshipsFeedsRequest?
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.