Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Follow a person

engelnyst edited this page · 2 revisions

To make alice@social.example follow bob@other.example, POST an activity to alice's feed (https://social.example/api/user/alice/feed) like this:

{
    "verb": "follow"
    "object": {
        "objectType": "person",
        "id": "acct:bob@other.example"
    }
}

Following someone on the same server uses a full Webfinger ID, also:

{
    "verb": "follow"
    "object": {
        "objectType": "person",
        "id": "acct:charlie@social.example"
    }
}

Posting a follow activity will update both users' social graph. Any new activities that Bob posts to his followers will automatically be sent to Alice, also.

This activity can fail for a number of reasons:

  • Alice already follows Bob.
  • The ID for Bob is invalid.
Something went wrong with that request. Please try again.