Novice Pokémon Master

    @segment/analytics-react-native-plugin-facebook-app-events
    TypeScript icon, indicating that this package has built-in type declarations

    0.3.1 • Public • Published

    @segment/analytics-react-native-plugin-facebook-app-events

    DestinationPlugin for Facebook App Events. Wraps react-native-fbsdk-next.

    Installation

    You need to install the @segment/analytics-react-native-plugin-facebook-app-events and the react-native-fbsdk-next dependency.

    Using NPM:

    npm install --save @segment/analytics-react-native-plugin-facebook-app-events react-native-fbsdk-next

    Using Yarn:

    yarn add @segment/analytics-react-native-plugin-facebook-app-events react-native-fbsdk-next

    Run pod install after the installation to autolink the Facebook SDK.

    Follow the instructions in Configure projects of React-Native-fbsdk-next to finish the setup of FBSDK.

    See React Native FBSDK Next for more details of this dependency. The plugin automatically calls the Settings.initializeSDK(); method, so you do not need to explictly add that code to your app. Adding the method again may result in an error.

    Usage

    Follow the instructions for adding plugins on the main Analytics client:

    In your code where you initialize the analytics client call the .add(plugin) method with an FacebookAppEventsPlugin instance:

    import { createClient } from '@segment/analytics-react-native';
    
    import { FacebookAppEventsPlugin } from '@segment/analytics-react-native-plugin-facebook-app-events';
    
    const segmentClient = createClient({
      writeKey: 'SEGMENT_KEY'
    });
    
    segmentClient.add({ plugin: new FacebookAppEventsPlugin() });

    Support

    Please use Github issues, Pull Requests, or feel free to reach out to our support team.

    Integrating with Segment

    Interested in integrating your service with us? Check out our Partners page for more details.

    License

    MIT License
    
    Copyright (c) 2021 Segment
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
    

    Install

    npm i @segment/analytics-react-native-plugin-facebook-app-events

    DownloadsWeekly Downloads

    1,489

    Version

    0.3.1

    License

    MIT

    Unpacked Size

    49 kB

    Total Files

    33

    Last publish

    Collaborators

    • jfehrman
    • azhaotwilio
    • ryder.wendt
    • sa-jsooter
    • alecjacobs
    • sacharya01
    • enyi.asonye
    • afsha-nazim-seg
    • jalexy12
    • maneeshdharma
    • akurapati
    • hbahrainwala
    • mschaszberger
    • lnamba
    • varadarajan-tw
    • prayansh-twilio
    • seanhan-segment
    • replatero
    • aviswanathan
    • sayan-das-in
    • justeen
    • sausingh
    • jgabe13
    • jboggstwilio
    • haeyoon.paik
    • wenjunchen
    • yodebu
    • kentrollins
    • gyuen
    • oobiwumi
    • melissaperez
    • kwang9
    • yhe
    • rustybailey
    • meg1000
    • ibbykhajanchi
    • aishikawaki
    • funlu
    • zeningong
    • ashwitha.bg
    • winnieli1129
    • whaider_twilio
    • jemin.park
    • tcgilbert
    • kevinburkesegment
    • felttrip
    • prabhnoor1997
    • akashyap91
    • connormarchand
    • clintz.seg
    • karimkeshwani
    • spencerattick
    • wally.tg
    • rhall-twilio
    • yash-twilio
    • brookstaylorjr
    • forgetfulfellow
    • shayan-golafshani
    • lerahulram
    • shpankau
    • mugelstad
    • hdamani
    • pthomas931
    • brchristy
    • rrivera-segment
    • anton-vylushchak
    • sethnutetwilio
    • farbodsalimi
    • apmitchell
    • fplinke
    • manali-bhosale
    • chtoombs
    • sethsegment
    • eric-hyde
    • elmoselyee
    • conniechen
    • michaelghseg
    • rtrox
    • jayakrishnannair
    • lateefat
    • maryam.sharif
    • wdbetts
    • ryanligon
    • ejdixon13
    • sindhusegment
    • lfdelossantos
    • aramakrishnan
    • neztex
    • segment-camden
    • ankur.agarwal1
    • vbatanov
    • lluque-twilio
    • sweetslush
    • jair.aviles
    • rfarivar
    • pmaid
    • song4you
    • peterdemartini
    • emmy.byrne
    • vincen7tran
    • ariel.silvestri
    • xinghaohuang
    • dean-huynh
    • cdignam-segment
    • bkambo
    • abhinavsureka
    • rikezatsegment
    • arunlalam-segment
    • cjradek
    • neeharikakondipati
    • simpixelated
    • chihchun-twilio
    • sangeeta.singh
    • acharles14
    • jyim008
    • seghungtran
    • alayvora
    • tv0
    • pchen-twilio
    • hema-segment
    • sudojatin
    • mayberex
    • anandjha
    • pmunin
    • oscb
    • krousseau
    • brandongregoryscott
    • knksmith57
    • sachinwathore
    • fhalim-segment
    • cfree
    • mettledrum
    • maerf0x0
    • ifonseka1
    • aniket.gupta
    • hjoonpm
    • celine-segment
    • parsa-segment
    • hmorgan94
    • pmcanseco-segment
    • ynguyen
    • masira
    • gpsamson
    • amillet89
    • cholt002
    • av-segment
    • aghotikar
    • vikrant-segment
    • larryatsegment
    • lbrink
    • shivpoojan-segment
    • ariel_segment
    • scruwys1
    • sowjanyaedara
    • chrischalstrom
    • eesegment
    • lew-gordon
    • kyliepedersen
    • jinapark
    • skntwilio
    • segmentio
    • segment-admin
    • dominicbarnes
    • shobhita-agarwal
    • deanhuynh
    • jlineaweaver
    • ladanazita
    • peripheral
    • achille-roussel
    • rajulvadera
    • dalchandc
    • lpediredla
    • n2parko
    • segment-andy-yeo
    • sahilp
    • psankaranarayana
    • emilio-gomez-lavin
    • andreiko_ru
    • xagos
    • leifdreizler
    • alan-segment
    • tyson_segment
    • bgamwell
    • jfabre-segment
    • uditmehta
    • hellooimkat
    • sanscontext
    • aultimus
    • salolivares
    • erikdw
    • chenxiangzhang
    • fauzyy
    • jaimal
    • calthomson
    • yunqiaohuang
    • yabrira
    • mericsson
    • prayansh-segmentt
    • stargaesser
    • andyguwc
    • jeremylarkin
    • bsneed
    • danieljackins
    • tomeliaz
    • segment-seth
    • bihl
    • shamil.ataev
    • james9446
    • priscilla.giatti
    • kellylu
    • jmbuckner
    • benhorowitz
    • yolken-segment
    • nlsun
    • segment-michael
    • cohara87
    • drew-thompson
    • segment-jsingh
    • vanesng
    • cvillela
    • mniehe
    • stephment
    • sharadbhadouria
    • emilyc
    • maggieyu
    • hblanks-segment
    • rsata
    • juhaelee
    • akleiner2
    • andrius-segment
    • pooyaj
    • valerieernst
    • rjenkinsseg
    • segment-ulysse
    • khinkalilover
    • maloneya
    • zackurey
    • kelcook
    • odoren
    • alistairbarrell
    • anna.choi
    • whamo12
    • amaloney
    • gilomer
    • kiara.daswani
    • marcelopv
    • yannieyip
    • eric.rogner
    • marinhero
    • lcamposg
    • corey.ching
    • steve_at_segment
    • tepahk
    • cjo2
    • fc-segment
    • kdharaiya
    • jon.anderson-at-segment.com
    • markzegarelli
    • stysegment
    • ajhenry
    • stacy.song
    • niveda.balananthan
    • krlv
    • rexatsegment
    • nickaguilar
    • tri.truong
    • csayuso
    • joyce-shi
    • bradenbecker
    • neha.sanghrajka
    • reneewang
    • dan.lasky
    • sam.tapia
    • gbbastos
    • vikramkumar19
    • mpriyad25
    • peter.walker
    • jeremy.parker
    • khamidou-segment
    • smidges