# Facebook SDK & social media

**URL:** <https://forum.bubble.io/t/facebook-sdk-social-media/192865>\
**Category:** Plugins\
**Created:** [February 21, 2022, 3:58pm UTC](https://forum.bubble.io/t/facebook-sdk-social-media/192865 "2022-02-21T15:58:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lex](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@lex](https://forum.bubble.io/u/lex)\
**Post date:** [February 21, 2022, 3:58pm UTC](https://forum.bubble.io/t/facebook-sdk-social-media/192865/1 "2022-02-21T15:58:12Z")

</div>

Hi everyone,

I’m currently launching an app built on the Bubble platform and we’re running in to some problems/limitations when it comes to integrating the Facebook SDK for remarketing purposes.

Does anyone else have experience of a plug-in available on Bubble which enables the integration of tracking? There are simple events we cannot track via Bubble for our paid-social campaigns such as app installs which mean that the algorithm behind social platforms that helps target audiences is not working optimally and is leading to gargantuan ad spend.

It would be interesting to know whether anyone has been able to properly integrate the Facebook SDK (and how?!) or if there’s an alternative that would allow us to get this all linked up properly. As I say, the purpose of this is really about being able to successfully link and monitor our paid-social campaigns to customer acquisition.

Any help appreciated!  
Thanks,  
Lex

---

<div class="post-metadata">

**Author:** ![gbourne](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gbourne/32/84524_2.png) [@gbourne](https://forum.bubble.io/u/gbourne)\
**Post date:** [February 28, 2022, 5:37am UTC](https://forum.bubble.io/t/facebook-sdk-social-media/192865/2 "2022-02-28T05:37:07Z")

</div>

Hey Lex,

Here is some info on connecting the Facebook SDK - not a step-by-step, but give a general overview of what is needed to connect your users.

> [@Permission to manage and to post on a social account of the User](http://forum.bubble.io/t/permission-to-manage-and-to-post-on-a-social-account-of-the-user/48471/2):
>
> There are several steps, approvals, and integrations you’ll need to make so you can starting posting to your user’s social networks. It sounds like you’ve begun on the right path with creating apps at Facebook and Twitter. Realize this is an old post, but in case you or other still want to solve it. disclosure: my company Ayrshare has a [Social Media Posting Bubble Plugin](https://www.ayrshare.com/integration-with-bubble/) and API Connector that does most of the following for you. See below. While each network has their own flow , API, and gotch…

Regarding analytics, there are two high-level types: organic and paid. Organic are just regular posts and use the standard Facebook API. Paid are analytics on ads and require the use of Facebook’s Marketing API.

Here are some [Facebook analytics examples](https://docs.ayrshare.com/rest-api/endpoints/analytics#analytics-on-a-post) from organic posts - click through the \> on the “Response” to see the FB data. Disclosure: example from my site’s API.

Are you looking for organic or paid/ads?

Finally here is some info on the Marketing API: [Marketing API - Documentation - Meta for Developers](https://developers.facebook.com/docs/marketing-apis/)

---

<div class="post-metadata">

**Author:** ![lex](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@lex](https://forum.bubble.io/u/lex)\
**Post date:** [February 28, 2022, 11:41pm UTC](https://forum.bubble.io/t/facebook-sdk-social-media/192865/3 "2022-02-28T23:41:45Z")

</div>

Hi gbourne,

Thanks for the response on this!

We’re looking for analytics on the paid side of things. We have access to everything on the back-end in the fb business manager, however we can’t seem to link our pixel to anything inside Bubble. Do you have experience in linking the conversions API to Bubble, because this seems to be where we’re having all of our problems…

Greatly appreciate anything you can offer to drive us in the right direction on this!

Thanks,  
Lex

---

<div class="post-metadata">

**Author:** ![gbourne](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gbourne/32/84524_2.png) [@gbourne](https://forum.bubble.io/u/gbourne)\
**Post date:** [February 28, 2022, 11:57pm UTC](https://forum.bubble.io/t/facebook-sdk-social-media/192865/4 "2022-02-28T23:57:46Z")

</div>

Well, I think there are two approaches - haven’t done this specifically for the FB pixel. First, get the Javascript code FB gives your for inserting the pixel. Next, your goal is to run said JS in Bubble on every page.

1. Create a plugin with the Facebook JS pixel code. Creating a plugin isn’t that bad.
2. Add an HTML element on each page with the element tags and put the FB JS code between the script elements.

---

<div class="post-metadata">

**Author:** ![faisalkarimstubapp](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@faisalkarimstubapp](https://forum.bubble.io/u/faisalkarimstubapp)\
**Post date:** [May 31, 2022, 9:05am UTC](https://forum.bubble.io/t/facebook-sdk-social-media/192865/5 "2022-05-31T09:05:16Z")

</div>

Hi @lex , I want to run App Install/Download paid campaign on FB. Are you able to track (Bubble) app installation events from Play Store / App Store? Mind sharing how do you do it?

---

<div class="post-metadata">

**Author:** ![andre.yokoi](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@andre.yokoi](https://forum.bubble.io/u/andre.yokoi)\
**Post date:** [October 10, 2023, 2:54pm UTC](https://forum.bubble.io/t/facebook-sdk-social-media/192865/6 "2023-10-10T14:54:55Z")

</div>

@lex@faisalkarimstubapp hey there! where you able to solve the installs tracking issue?  
My app is wrapped using bdk, but i have no clues on how to add the sdk to start tracking…

---

<div class="post-metadata">

**Author:** ![faisalkarimstubapp](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@faisalkarimstubapp](https://forum.bubble.io/u/faisalkarimstubapp)\
**Post date:** [December 28, 2023, 1:14pm UTC](https://forum.bubble.io/t/facebook-sdk-social-media/192865/7 "2023-12-28T13:14:58Z")

</div>

Hi have given up on this. I am building native app using Flutterflow, check it out
