Skip to content

Iframe integration

To integrate X-Faces into your website, use the iframe template below.
You simply need to dynamically generate a link for each user and pass it to the src attribute of the iframe.

<iframe
id="x-faces-frame"
width="100%" height="600px"
src="https://api.x-faces.xyz/v1/user/verify/<guid>"
frameborder="0" style="margin-bottom: 2rem;"
allow="camera *; microphone *; fullscreen *; accelerometer *;"
></iframe>
<script src="https://x-faces.xyz/xintegration.js" defer></script>

Where guid is x-faces user id that you get from call https://api.x-faces.xyz/v1/user/create

Don’t change the allow section of the iframe.