# Share image on facebook

Integrating social media functionalities directly into your video content can significantly boost its reach and viewer engagement. By enabling viewers to share an image directly to Facebook with just a click, you create a more interactive and social experience. This feature can be particularly beneficial for promotional content, where shareability can enhance the visibility of your campaigns.

Here's how you can incorporate a direct image-sharing feature to Facebook within your video:

**Implementing the 'Open link connector' for Facebook Sharing:**

1. **Code Setup:**

   Utilize the 'Open link connector' to embed the following JavaScript code:

```jsx
jsxCopy code
const imageUrl = "https://placehold.co/512x512"; // Replace this URL with the image you wish to share
return `https://www.facebook.com/sharer/sharer.php?u=${imageUrl}`;

```

This code snippet is designed to create a URL that, when accessed, opens Facebook's share dialog with the specified image preloaded for sharing.

1. **Activation:**

   When a viewer interacts with the designated share element in your video, the embedded code triggers Facebook's share dialog, enabling them to share the image on their timeline effortlessly.

**Use Case Example:**

* **Event Promotion:** If your video is promoting an upcoming event, you can include an eye-catching promotional image that viewers can share to Facebook, increasing the event's visibility and potential attendance.

By embedding this straightforward code into your video, you empower viewers to share content directly to Facebook, enhancing the interactive experience and potentially increasing your content's reach and impact on social media.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.blings.io/creator/studio/custom-elements-advance/share-image-on-facebook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
