> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblSocialRelationship

> XblSocialRelationship

# XblSocialRelationship

Represents the relationship between the user and another XBOX user.

## Syntax

```cpp theme={null}
typedef struct XblSocialRelationship {  
    uint64_t xboxUserId;  
    bool isFavorite;  
    bool isFriend;  
    bool isFollowingCaller;  
    const char** socialNetworks;  
    size_t socialNetworksCount;  
} XblSocialRelationship  
```

### Members

*xboxUserId*\
Type: uint64\_t

The person's XBOX user identifier.

*isFavorite*\
Type: bool

Indicates whether the person is one that the user cares about more. Since users can have a very large number of people in their people list, favorite people should be prioritized first in experiences and shown before others that are not favorites.

*isFriend*\
Type: bool

Indicates whether there exists a mutual follower/following relation between a user and another XBOX User

*isFollowingCaller*\
Type: bool

Does not reflect a follower/following relationship, is currently kept for backwards compatibility purposes. The value of this field is determined by the value of 'isFriend' within a XblSocialRelationship

*socialNetworks*\
Type: const char\*\*

A UTF-8 encoded collection of strings indicating which social networks this person has a relationship with.

*socialNetworksCount*\
Type: size\_t

The count of social networks strings in the socialNetworks array.

## Argument of

[XblSocialRelationshipResultGetRelationships](/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetrelationships)

## Requirements

**Header:** social\_c.h

## See also

[social\_c](/reference/live/xsapi-c/social_c/social_c_members)


## Related topics

- [XblSocialRelationshipResultGetRelationships](/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetrelationships.md)
- [Getting a social relationship](/services/xbox-services/community/people-system/how-to/live-getting-a-social-relationship.md)
- [XblSocialRelationshipResultGetNextAsync](/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetnextasync.md)
- [XblSocialRelationshipFilter](/reference/live/xsapi-c/social_c/enums/xblsocialrelationshipfilter.md)
- [XblSocialRelationshipResultDuplicateHandle](/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultduplicatehandle.md)
