Following Action Feed

Get a feed of activity using multiple signals of user engagement from accounts a user is following. This algorithm aggregates actions from across other accounts a user is following, to bubble up content that those accounts have engaged positively with.

Examples include:

  • For You
  • Your Friends Activity
  • Following Activity
  • Your Feed
  • Your Stream

Code Example

Take a look at this example of using the Following Action Feed endpoint, and read the detailed description below explaining each part of this code.

const data = JSON.stringify({
  "object": {
    "id": "Tim",
    "type": "user"

const xhr = new XMLHttpRequest();

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
});"GET", "");
xhr.setRequestHeader("accept", "application/json");
xhr.setRequestHeader("content-type", "application/json");

import requests

url = ""

payload = {"object": {
        "id": "Tim",
        "type": "user"
headers = {
    "accept": "application/json",
    "content-type": "application/json"

response = requests.request("GET", url, json=payload, headers=headers)

require 'uri'
require 'net/http'
require 'openssl'

url = URI("")

http =, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request =
request["accept"] = 'application/json'
request["content-type"] = 'application/json'
request.body = "{\"object\":{\"id\":\"Tim\",\"type\":\"user\"}}"

response = http.request(request)
puts response.read_body

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "",
  CURLOPT_POSTFIELDS => "{\"object\":{\"id\":\"Tim\",\"type\":\"user\"}}",
    "accept: application/json",
    "content-type: application/json"

$response = curl_exec($curl);
$err = curl_error($curl);


if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"object\":{\"id\":\"Tim\",\"type\":\"user\"}}");
Request request = new Request.Builder()
  .addHeader("accept", "application/json")
  .addHeader("content-type", "application/json")

Response response = client.newCall(request).execute();
curl --request GET \
  --url \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{"object":{"id":"Tim","type":"user"}}'

In this example we're running this feed algo on App ID "123" where an object user "Tim" is the target who will being receiving activity that users Tim follows have engaged in. (e.g. "Followed" is the default value for relationships, you can override that by explicitly setting follow relationship types. There are more optional controls you can explore in the API reference docs like limiting the activity to certain relationships, for instance, if you only wanted to show the recent posts users Tim follows have liked).

To summarize, this example is: "get activity the users Tim follows have recently engaged in"

Tutorial Example

You can see this API endpoint in action using our tutorial restaurant dataset here:
Following Action Feed Tutorial Example

API Reference Documentation

You can read the reference docs for this endpoint here:
Get Activity Actions Feed

What’s Next