# Get Latest Comment

The social.plus SDK offers the `getLatestComment` method, allowing you to fetch the most recent comment by a reference within your application. Integrating this feature enhances the user experience by keeping them informed about the latest interactions among users.

Using the `getLatestComment` method is straightforward: simply implement it to retrieve the latest comment by a reference, streamlining the process of accessing up-to-date information. Furthermore, the method returns a [Live Object](/social-plus-sdk/core-concepts/live-objects-collections.md) that you can observe for real-time updates once [Realtime Events](/social-plus-sdk/core-concepts/realtime-events.md) are subscribed, ensuring your app stays current with the latest comments and fostering a more interactive environment.

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/389121f867795b90667f7c68b82adce1>" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="<https://gist.github.com/amythee/34939b243556927a416fa190a3cae4f5>" %}
{% endtab %}

{% tab title="TypeScript" %}
Unsupported ❌
{% endtab %}

{% tab title="Flutter" %}
Supported ✅ (Please wait while we prepare a real example!)
{% endtab %}
{% endtabs %}

{% hint style="info" %}
Refer to [Comment reference type](/social-plus-sdk/social/comments.md#comment-description) for a more detailed explanation of the reference type parameter.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.social.plus/social-plus-sdk/social/comments/get-latest-comment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
