# Golang Get User From FB Id

**URL:** <https://forum.heroiclabs.com/t/golang-get-user-from-fb-id/1348>\
**Category:** Game Design\
**Created:** [February 7, 2021, 11:04am UTC](https://forum.heroiclabs.com/t/golang-get-user-from-fb-id/1348 "2021-02-07T11:04:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloudAle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/cloudale/32/300_2.png) [@cloudAle](https://forum.heroiclabs.com/u/cloudAle)\
**Post date:** [February 7, 2021, 11:04am UTC](https://forum.heroiclabs.com/t/golang-get-user-from-fb-id/1348/1 "2021-02-07T11:04:40Z")

</div>

Hi,  
Looks like there is no way from go to get user account from a facebook id

UsersGetId is filling facebook id with nil

```auto
    users, err := GetUsers(ctx, n.logger, n.db, n.tracker, userIDs, nil, nil)
    if err != nil {
        return nil, err
    }

```

Is there any way to easily get an account given a facebook id?

Thanks

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [February 7, 2021, 12:18pm UTC](https://forum.heroiclabs.com/t/golang-get-user-from-fb-id/1348/2 "2021-02-07T12:18:02Z")

</div>

@cloudAle What version of Nakama server are you on? We recently resolved an issue where the Facebook ID field was not populated into the responses returned by the server framework.

---

<div class="post-metadata">

**Author:** ![cloudAle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/cloudale/32/300_2.png) [@cloudAle](https://forum.heroiclabs.com/u/cloudAle)\
**Post date:** [February 7, 2021, 1:32pm UTC](https://forum.heroiclabs.com/t/golang-get-user-from-fb-id/1348/3 "2021-02-07T13:32:18Z")

</div>

@novabyte Nakama 2.15

But even on nakama 3.0 [nakama/runtime\_go\_nakama.go at 3b4522e086a59d9b3f6ff6bd8bcbc0be71ff7472 · heroiclabs/nakama · GitHub](https://github.com/heroiclabs/nakama/blob/3b4522e086a59d9b3f6ff6bd8bcbc0be71ff7472/server/runtime_go_nakama.go#L429)  
it is passing fbIDs as nil

What I meant was we’re querying by passing a fb id, and then getting back the user account, seems like golang api is missing this functionalities, as it could be easily done on c# unity with

```auto
client.GetUsersAsync(session, null, null, new string[]{ fbId });

```

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [February 7, 2021, 10:43pm UTC](https://forum.heroiclabs.com/t/golang-get-user-from-fb-id/1348/4 "2021-02-07T22:43:47Z")

</div>

@cloudAle I think there’s some confusion. You cannot pass FB IDs into the user ID field in the `GetUsers` function right now because there’s no additional input exposed to the server framework. I think this is a simple case where it could be useful to extend the server framework to match the API supported by the server.

Please open a feature request for the change.
