Closed bl9l closed 4 years ago
I got it
Could you explain what you figured out of the situation?
According to this issue, i realised that i must present two more arguments user_id
and username
. It was the reason for sintax error. And d
means double-tap.
So now the question is whose user_id
and username
should i provide? Mine or user whose post i am liking
And one more. Should i use randomized module_name
for each like? May be that is the reason?
I like media with this function:
const likeMedia = (media) => {
return ig.media.like({
mediaId: media.id,
d: 1,
moduleInfo: { module_name: 'profile' },
});
};
With ig
being an instantiated IgApiClient
with a signed in user inside it's state.
It works, but I'd really like to know what the moduleInfo
parameter is used for, and what impact does d
makes on liking.
I guess that moduleInfo
means for Instagram service, the module from witch you make your like. @dilame please correct me if I am wrong
I suggest looking over this post on the php version of this API: https://github.com/mgp25/Instagram-API/issues/1602. It explains a bit more about the modules, I believe they should apply here as well. You can find additional information here: https://github.com/dilame/instagram-private-api/blob/master/docs/modules/_types_common_types_.md
@ZackNeyland Thank you. I have already seen this. This is an explanation of the arguments. But there is not a word about behavior. I believe that I get banned due to improper behavior. Therefore, I need to model the behavior of the application.
This thread has been inactive for a long time now, so it will be closed. If this is still an issue, reopen it.
still its not answered?
Hi. I am getting ban when i am trying to like any post.
Here is the code
I tryed to set
module_name
as'profile'
, but then i've got thisSo what mean
moduleInfo
andd
parameters?Proxy: enabled, Version: "instagram-private-api": "^1.14.0"