IGPAPI
    Preparing search index...

    Function MediaLikeGraphql

    • Likes a media through graphql_www LikeMutation (x-root-field-name: xig_media_like), the method the Android 450 app uses from the reels viewer and, in the newer flow, from the short-url feed. The media id is the container id (<pk>_<authorPk>); every other value comes from the caller's surface context. The response's media.has_liked confirms the toggle.

      Parameters

      Returns Effect<
          {
              data: {
                  xig_media_like: {
                      media: {
                          __typename?: string;
                          has_liked: boolean;
                          id: string;
                          strong_id__?: string;
                      };
                  };
              };
          },
          | IgApiError
          | RequestError
          | ParseError
          | TransportError
          | SchemaError
          | GraphqlRootFieldMissingError,
          MobileDevice
          | GraphqlJsonHttp
          | MobileApplication,
      >