# Integrating into Website

**URL:** <https://forums.rocket.chat/t/integrating-into-website/1620>\
**Category:** Community Support\
**Created:** [July 18, 2018, 10:05pm UTC](https://forums.rocket.chat/t/integrating-into-website/1620 "2018-07-18T22:05:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![1995zaw](https://avatars.discourse-cdn.com/v4/letter/1/e0b2c6/32.png) [@1995zaw](https://forums.rocket.chat/u/1995zaw)\
**Post date:** [July 18, 2018, 10:05pm UTC](https://forums.rocket.chat/t/integrating-into-website/1620/1 "2018-07-18T22:05:25Z")

</div>

Hi All,

I am trying to integrate Rocket into my website, I have been looking at the documentation but do not understand exactly how to do that as an iframe. I pretty much want the iframe to autologin as a defined a user that I define into a channel. Im just unsure how to layout the iframe and rest api. Any help would be awesome

---

<div class="post-metadata">

**Author:** ![john27](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@john27](https://forums.rocket.chat/u/john27)\
**Post date:** [July 19, 2018, 8:22am UTC](https://forums.rocket.chat/t/integrating-into-website/1620/2 "2018-07-19T08:22:06Z")

</div>

Having the same issue. SSO is showing a bar on the login screen which is not useful. There should be documentation for implementing auto login using different ways.

---

<div class="post-metadata">

**Author:** ![MindtoEye](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/mindtoeye/32/440_2.png) [@MindtoEye](https://forums.rocket.chat/u/MindtoEye)\
**Post date:** [July 19, 2018, 5:36pm UTC](https://forums.rocket.chat/t/integrating-into-website/1620/3 "2018-07-19T17:36:33Z")

</div>

This is doable but it takes quite a lot of digging since the documentation is uhmm bad and poorly written. Here’s what I did (Note that it’s close but It doesn’t work for me completely at this point)

First you setup an account in your rocketchat server that has admin privileges. You will use this account using REST calls to automatically create user accounts.

[https://rocket.chat/docs/developer-guides/rest-api/users/create/](https://rocket.chat/docs/developer-guides/rest-api/users/create/)

I would advise that this is done in a server you write, something in PHP, Pythin or JEE, because you don’t want to have these credentials floating around in your webpage.

Use the same code to log the user into your rocketchat instance with the newly created account:

[https://rocket.chat/docs/developer-guides/rest-api/authentication/](https://rocket.chat/docs/developer-guides/rest-api/authentication/)

You will get a JSON object back that has a token. You can then use that token to call postMessage on the iframe where you have rocketchat embedded, as per:

[https://rocket.chat/docs/developer-guides/iframe-integration/commands/](https://rocket.chat/docs/developer-guides/iframe-integration/commands/)

I’m stuck on this one myself. This should all work according the documentation but I’m seeing an error in the iframe running rocketchat.

---

<div class="post-metadata">

**Author:** ![ptkferraro](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@ptkferraro](https://forums.rocket.chat/u/ptkferraro)\
**Post date:** [February 14, 2019, 10:28am UTC](https://forums.rocket.chat/t/integrating-into-website/1620/4 "2019-02-14T10:28:21Z")

</div>

Hi Mind, its me again, doid you make it wrork? I am stuck 3 days on this integration…

---

<div class="post-metadata">

**Author:** ![Kekeli](https://avatars.discourse-cdn.com/v4/letter/k/c77e96/32.png) [@Kekeli](https://forums.rocket.chat/u/Kekeli)\
**Post date:** [August 3, 2019, 4:46am UTC](https://forums.rocket.chat/t/integrating-into-website/1620/5 "2019-08-03T04:46:34Z")

</div>

Try this [https://mohammedlakkadshaw.com/blog/embedding-rocket-chat-using-iframe-auth.html/](https://mohammedlakkadshaw.com/blog/embedding-rocket-chat-using-iframe-auth.html/)

It is very well illustrated

---

<div class="post-metadata">

**Author:** ![snake-py](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@snake-py](https://forums.rocket.chat/u/snake-py)\
**Post date:** [January 14, 2021, 1:53pm UTC](https://forums.rocket.chat/t/integrating-into-website/1620/6 "2021-01-14T13:53:52Z")

</div>

Hey guys I am struggling as well with this. In the end, I want something like Facebook messenger where a user only needs to provide an email and a name. Then I want to directly link this to a supporter. Is this even possible?
