{"id":21762042,"url":"https://github.com/segment-integrations/analytics-ios-integration-facebook-app-events","last_synced_at":"2025-04-13T13:32:38.106Z","repository":{"id":44526569,"uuid":"54805348","full_name":"segment-integrations/analytics-ios-integration-facebook-app-events","owner":"segment-integrations","description":"The Facebook analytics-ios integration. https://segment.com/docs/integrations/facebook","archived":false,"fork":false,"pushed_at":"2022-02-09T22:33:11.000Z","size":1234,"stargazers_count":1,"open_issues_count":3,"forks_count":18,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-03-27T04:33:23.693Z","etag":null,"topics":["ios"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/segment-integrations.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-27T00:14:30.000Z","updated_at":"2021-12-16T18:01:35.000Z","dependencies_parsed_at":"2022-09-21T04:04:52.053Z","dependency_job_id":null,"html_url":"https://github.com/segment-integrations/analytics-ios-integration-facebook-app-events","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-integrations%2Fanalytics-ios-integration-facebook-app-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-integrations%2Fanalytics-ios-integration-facebook-app-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-integrations%2Fanalytics-ios-integration-facebook-app-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-integrations%2Fanalytics-ios-integration-facebook-app-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segment-integrations","download_url":"https://codeload.github.com/segment-integrations/analytics-ios-integration-facebook-app-events/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248617751,"owners_count":21134197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios"],"created_at":"2024-11-26T12:10:43.784Z","updated_at":"2025-04-13T13:32:38.084Z","avatar_url":"https://github.com/segment-integrations.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analytics\n\n[![CircleCI](https://circleci.com/gh/segment-integrations/analytics-ios-integration-facebook-app-events.svg?style=svg)](https://circleci.com/gh/segment-integrations/analytics-ios-integration-facebook-app-events)\n[![Version](https://img.shields.io/cocoapods/v/Segment-Facebook-App-Events.svg?style=flat)](http://cocoapods.org/pods/Segment-Facebook-App-Events)\n[![License](https://img.shields.io/cocoapods/l/Segment-Facebook-App-Events.svg?style=flat)](http://cocoapods.org/pods/Segment-Facebook-App-Events)\n\nFacebook App Events integration for analytics-ios.\n\n## Installation\n\nTo install the Segment-Facebook App Events integration, simply add this line to your [CocoaPods](http://cocoapods.org) `Podfile`:\n\n```ruby\npod \"Segment-Facebook-App-Events\"\n```\n\n## Usage\n\nAfter adding the dependency, you must register the integration with our SDK.  To do this, import the Facebook App Events integration in your `AppDelegate`:\n\n```\n#import \u003cSegment-Facebook-App-Events/SEGFacebookAppEventsIntegrationFactory.h\u003e\n```\n\nAnd add the following lines:\n\n```\nNSString *const SEGMENT_WRITE_KEY = @\" ... \";\nSEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:SEGMENT_WRITE_KEY];\n\n[config use:[SEGFacebookAppEventsIntegrationFactory instance]];\n\n[SEGAnalytics setupWithConfiguration:config];\n\n```\n\n### Data Processing Options\n  To override the Data Processing Options when the Limited Data Use destination setting is enabled, call the `setDataProcessingOptions`\n  method when initializing the FB App Events integration SDK. For example:\n  ```\n    SEGFacebookAppEventsIntegrationFactory *fb = [SEGFacebookAppEventsIntegrationFactory instance];\n\n    // Optional - Set the Data Processing Options to override the default options of [['LDU'], 0, 0]\n    [fb setDataProcessingOptions:@[ @\"LDU\" ] forCountry:1 forState: 1000];\n\n    // Add the bundle FB integration SDK\n    [config use:fb];\n  ```\nFor more information on Facebook's Data Processing Options, reference their documentation: https://developers.facebook.com/docs/marketing-apis/data-processing-options#mobile-sdks\n\n## License\n\n```\nWWWWWW||WWWWWW\n W W W||W W W\n      ||\n    ( OO )__________\n     /  |           \\\n    /o o|    MIT     \\\n    \\___/||_||__||_|| *\n         || ||  || ||\n        _||_|| _||_||\n       (__|__|(__|__|\n\nThe MIT License (MIT)\n\nCopyright (c) 2019 Segment, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegment-integrations%2Fanalytics-ios-integration-facebook-app-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegment-integrations%2Fanalytics-ios-integration-facebook-app-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegment-integrations%2Fanalytics-ios-integration-facebook-app-events/lists"}