Skip to content
engelnyst edited this page Jul 16, 2013 · 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.
Clone this wiki locally