Skip to content

Introduction to GetSocial Social Graph

Social Graph feature lets you add a concept of friends to your app.

Social Graph

Up until now, the most common way to build this was with the help of Facebook login. However, there’s a tendency between users to use Facebook less, when logging into apps, even if they can.

But people still have friends, even outside Facebook! Think of your private chat rooms in WhatsApp or #random channel in some Slack community.

People tend to share content with those tightly closed groups. GetSocial Smart Invites combined with Social Graph let you build relationships based on “Who invited who” information.

Populating Social Graph

There are 3 ways to create a relationship between users in Social Graph:

  1. Explicitly add a friend to the current user via the SDK. Building Social Graph Relationships article has the exact examples for each platform: Android, iOS, Unity.

  2. User sends Smart Invite link and the receiving person installs the app.

  3. Facebook identity was added to the user (Android, iOS, Unity) and we were able to find some of his/her friends, who are already using the app with Facebook attached.

Querying the Social Graph

Right now, there are 3 types of queries you can make to Social Graph, related to the user.

  1. Get the list of friends of the current user.

  2. Get the count of friends of the current user (useful for displaying badges).

  3. Check, if a user is the friend of the current user.

  4. Get the list of suggested friends for the current user. “Suggested friends” are the users with whom the current user has mutual friends.

Querying the Social Graph article has the exact SDK method descriptions for each platform: Android, iOS, and Unity.

Give us your feedback! Was this article helpful?

😀 🙁