# Share a URL

**URL:** <https://community.fliplet.com/t/share-a-url/359>\
**Category:** Code Library\
**Created:** [July 1, 2022, 9:50am UTC](https://community.fliplet.com/t/share-a-url/359 "2022-07-01T09:50:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.fliplet.com/mel/32/3_2.png) [@Mel](https://community.fliplet.com/u/Mel)\
**Post date:** [July 1, 2022, 9:50am UTC](https://community.fliplet.com/t/share-a-url/359/1 "2022-07-01T09:50:34Z")

</div>

### Copy the URL and share it via Email, Twitter, Facebook and others.

_ **PRE-REQUISITES** _

For the following snippets to work as intended you will need to add **fliplet-communicate** library to your app. Use the following instructions to add it:

1. When in Fliplet Studio’s Edit screen, open the Developer Options from the right hand menu
2. With the Developer Options open, click the Libraries button in the top right corner
3. In the search field, type in ‘fliplet-communicate’
4. Click it to add it to the list
5. Click Save

### Share URL on web

[![Share URL on web](https://europe1.discourse-cdn.com/flex017/uploads/fliplet/original/1X/eae35ef8aeda79dabd32c2e7908276f28b7b37c2.png "Share URL on web")](https://help.fliplet.com/wp-content/uploads/sites/2/nggallery/share-url/Annotation-2020-04-24-140639.png)

### Share URL on mobile

[![Share URL on mobile](https://europe1.discourse-cdn.com/flex017/uploads/fliplet/original/1X/8ce76fb2e8bec8ef6844dd1579e4c47b13c50138.jpeg "Share URL on mobile")](https://help.fliplet.com/wp-content/uploads/sites/2/nggallery/share-url/IMG_2735.jpg)  
To help users share a website URL with other people, you can offer them shortcuts to do this. For example you can give the user options to copy the URL or share it via Twitter, Facebook or WhatsApp (if they have the app).

To pop open the URL sharing menu, run the code below (in this example we’re sharing a link to a Google map).

**JavaScript**

```javascript
// A simple way to share a URL
Fliplet.Communicate.shareURL('https://maps.google.com/?addr=EC2A+4DN');

```

On desktop browsers it’s also possible to share the URL with a message for the recipient. You can do this with the following code:

**JavaScript**

```javascript
// Add an optional message for apps that support the sharing a URL with a message
Fliplet.Communicate.shareURL({
  url: 'https://maps.google.com/?addr=EC2A+4DN',
  message: 'Drop by and say hi!'
});

```
