{"id":22962339,"url":"https://github.com/zonble/flutter_facebook_appevents","last_synced_at":"2025-08-13T06:33:51.427Z","repository":{"id":52808792,"uuid":"214967422","full_name":"zonble/flutter_facebook_appevents","owner":"zonble","description":"Flutter Facebook App Events","archived":false,"fork":false,"pushed_at":"2023-12-04T17:55:16.000Z","size":99,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-12-04T18:54:03.965Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/zonble.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":"2019-10-14T06:43:21.000Z","updated_at":"2023-12-04T17:55:20.000Z","dependencies_parsed_at":"2022-08-22T18:50:12.278Z","dependency_job_id":null,"html_url":"https://github.com/zonble/flutter_facebook_appevents","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonble%2Fflutter_facebook_appevents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonble%2Fflutter_facebook_appevents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonble%2Fflutter_facebook_appevents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonble%2Fflutter_facebook_appevents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zonble","download_url":"https://codeload.github.com/zonble/flutter_facebook_appevents/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229743813,"owners_count":18117460,"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":[],"created_at":"2024-12-14T19:16:34.451Z","updated_at":"2024-12-14T19:16:34.982Z","avatar_url":"https://github.com/zonble.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_facebook_appevents\n\n2019 © Weizhong Yang.\n\n[![pub package](https://img.shields.io/pub/v/flutter_facebook_appevents.svg)](https://pub.dartlang.org/packages/flutter_facebook_appevents)\n[![Actions Status](https://github.com/zonble/flutter_facebook_appevents/workflows/Build/badge.svg)](https://github.com/zonble/flutter_facebook_appevents/actions)\n\nThe package bridges [Facebook App Events](https://developers.facebook.com/docs/app-events/)\nfeature to your Flutter app.\n\nIt helps you to install Facebook SDK 5.x for iOS and Android, and makes your app\nto start sending events to Facebook automatically once you complete the\nconfiguration for your app. You can track additional events with the package, if\nyou want to.\n\n## Installation\n\nAdd the following line to your pubspec.yaml file\n\n```yaml\ndependencies:\n  flutter_facebook_appevents:\n    git: \"git@gitlab.kkinternal.com:xddd/flutter_facebook_appevents.git\"\n```\n\nThe call `flutter packages get`.\n\n## Configuration\n\nYou need add additional configuration to your app in order to integrate Facebook\nSDK on both iOS and Android platform.\n\n### iOS\n\nPlease add following lines to your Info.plist file:\n\n```xml\n\u003ckey\u003eFacebookAppID\u003c/key\u003e\n\u003cstring\u003e[YOUR_FB_APP_ID]\u003c/string\u003e\n\u003ckey\u003eFacebookDisplayName\u003c/key\u003e\n\u003cstring\u003e[YOUR_FB_APP_NAME]\u003c/string\u003e\n\u003ckey\u003eFacebookAutoLogAppEventsEnabled\u003c/key\u003e\n\u003ctrue/\u003e\n\u003ckey\u003eFacebookAdvertiserIDCollectionEnabled\u003c/key\u003e\n\u003ctrue/\u003e\n\u003ckey\u003eCFBundleURLTypes\u003c/key\u003e\n\u003carray\u003e\n    \u003cdict\u003e\n        \u003ckey\u003eCFBundleTypeRole\u003c/key\u003e\n        \u003cstring\u003eEditor\u003c/string\u003e\n        \u003ckey\u003eCFBundleURLName\u003c/key\u003e\n        \u003cstring\u003eFacebook\u003c/string\u003e\n        \u003ckey\u003eCFBundleURLSchemes\u003c/key\u003e\n        \u003carray\u003e\n            \u003cstring\u003efb[YOUR_FB_APP_ID]\u003c/string\u003e\n        \u003c/array\u003e\n    \u003c/dict\u003e\n\u003c/array\u003e\n```\n\nYour Facebook app ID and display name are required. On the other hand,\nyou can decide to enable auto-log app events and collecting advertiser\nID or not by your self.\n\n### Android\n\nPlease add the following lines to the `application` scope in your\nAndroidManifest.xml file:\n\n```xml\n\u003cmeta-data\n    android:name=\"com.facebook.sdk.ApplicationId\"\n    android:value=\"@string/facebook_app_id\" /\u003e\n\u003cmeta-data\n    android:name=\"com.facebook.sdk.AutoLogAppEventsEnabled\"\n    android:value=\"true\" /\u003e\n\u003cmeta-data\n    android:name=\"com.facebook.sdk.AutoInitEnabled\"\n    android:value=\"true\" /\u003e\n\u003cmeta-data\n    android:name=\"com.facebook.sdk.AdvertiserIDCollectionEnabled\"\n    android:value=\"false\" /\u003e\n```\n\nThen add create a file `strings.xml` under app-\u003esrc-\u003emain-\u003eres-\u003evalues, and add\nfollowing lines:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cresources\u003e\n    \u003cstring name=\"facebook_app_id\"\u003e[YOUR_FB_APP_ID]\u003c/string\u003e\n    \u003cstring name=\"fb_login_protocol_scheme\"\u003efb[YOUR_FB_APP_ID]\u003c/string\u003e\n\u003c/resources\u003e\n```\n\n## Manual Events\n\nYou can track additional events using the package as well. To track a manual\nevent, just call `FacebookAppEvents.logEvent()`. For example\n\n``` dart\nFacebookAppEvents.logEvent(\"EVENT_NAME\", {\"PARAMETER_NAME\": \"VALUE\"}))\n```\n\nYou can take a look at the classes like `EventName` and `ParameterName` to find\nthe events and parameters that Facebook supports.\n\n## Notes\n\nI wrote the package merely for my own need, because I could not find any package\nfor Facebook App Events in June, 2019. However, I found there are various great\npackages for the same purpose when I published the package. You may want to\ntake a look on the packages:\n\n- [facebook_app_events](https://pub.dev/packages/facebook_app_events) by oddbit.id.\n- [facebook_analytics_plugin](https://pub.dev/packages/facebook_analytics_plugin) by Khalit Hartmann.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonble%2Fflutter_facebook_appevents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzonble%2Fflutter_facebook_appevents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonble%2Fflutter_facebook_appevents/lists"}