In addition to building applications directly on Lens, you may want to integrate Lens into other new or existing applications.
You can do this by providing features like sharing to Lens, following on Lens, or signing in with Lens in your application.
You can create a "Share to Lens" button easily via Lenster using HTML.
The following url parameters are supported:
text url via hashtags
So for example, let's say we have an app called "MyCoolApp" and we wanted to share some content from it to Lens, we could format a URL that looks like this:
We would get the following share modal on Lenster:
If you want to include a follow intent button on your website / web app, it’s super simple!
Just copy/paste the code snippets from below and replace handle with the handle you want the button intent to follow.
You can theme it with your own app color, or use our default color.
If you want to include a “Sign in with Lens” button in your web app to connect a wallet that contains a Lens profile, you can use the code below.
You will have to connect it to your Web3 provider yourself - this is just a dummy themed button.
Updated 6 days ago