搜尋套件、儲存庫與 APP 分類

套件詳情v1.0.5

flutter_meta_sdk

Flutter 用的 Meta SDK。本套件可讓您透過 Facebook 開發者儀表板整合 Facebook SDK,追蹤 Flutter 應用程式事件等。

AndroidiOSWeb
近 30 天下載
1.1萬
喜歡數
32
Pub 分數
150

安裝套件

flutter pub add flutter_meta_sdk

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

flutter_meta_sdk 套件可實現 Facebook 的 Meta SDK 與 Flutter 應用的無縫整合。它允許開發者追蹤應用事件,透過 Facebook 管理使用者驗證,並透過 Facebook 開發者儀表板使用 Facebook 的分析與廣告工具。此套件相容於 Android、iOS 及 Web 平台,簡化了 Meta 服務的跨平台實作。透過 `flutter pub add` 簡單設定,支援即時事件追蹤與深度連結,以提升使用者參與度。

適用情境

  • 在應用程式中追蹤使用者事件
  • 整合 Facebook 登錄
  • 實施廣告追蹤和分析
  • 啟用深度連結
  • 跨平台元SDK支援

主要特色

  • Facebook SDK 結合
  • 事件追蹤功能
  • 支援 Android、iOS 和 Web
  • 輕鬆安裝公眾套件
  • 開發者儀表板相容性

適合對象

  • 使用 Facebook 服務的行動和網頁應用
  • 需要使用者分析的應用程式
  • 行銷和廣告活動追蹤
  • 使用 Facebook 開發者儀表板的開發人員

使用建議

  • 需要設定 Facebook 開發者帳戶
  • 需要在 Facebook 電子報儀表板中進行正確設定
  • 某些功能可能需要額外權限
  • Web 支援的功能可能比原生平台有限

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Flutter Meta SDK

GitHub code size GitHub followers GitHub contributors Linkedin LinkedIn GitHub GitHub

flutter_meta_sdk allows you to integration Flutter with Native Meta SDK.

This was created using the latest SDK to include support for iOS 14. The plugin currently supports app events and deeps links for iOS and Android.

Setting things up

First of all, if you don't have one already, you must first create an app at Facebook developers: https://developers.facebook.com/

  1. Get your app id (referred to as [APP_ID] below)
  2. Get your client token (referred to as [CLIENT_TOKEN] below). See "Facebook Doc: Client Tokens" for more information and how to obtain it.
  • Don't forget to replace [APP_ID] with your Application ID

For IOS

For more information you can see full setup from Facebook SDK Official Read through the "Getting Started with App Events for iOS" tutuorial and in particular, follow step 5 by opening info.plist "As Source Code" and add the following

  • If your code does not have CFBundleURLTypes, add the following just before the final </dict> element:
<key>CFBundleURLTypes</key>
<array>
  <dict>
  <key>CFBundleURLSchemes</key>
  <array>
    <string>fb[APP_ID]</string>
  </array>
  </dict>
</array>
<key>FacebookAppID</key>
<string>[APP_ID]</string>
<key>FacebookClientToken</key>
<string>[CLIENT_TOKEN]</string>
<key>FacebookDisplayName</key>
<string>[APP_NAME]</string>
  • If your code already contains CFBundleURLTypes, insert the following:
<array>
 <dict>
 <key>CFBundleURLSchemes</key>
 <array>
   <string>fb[APP_ID]</string>
 </array>
 </dict>
</array>
<key>FacebookAppID</key>
<string>[APP_ID]</string>
<key>FacebookClientToken</key>
<string>[CLIENT_TOKEN]</string>
<key>FacebookDisplayName</key>
<string>[APP_NAME]</string>

# For Android 
For more information you can see full setup from [Facebok SDK Official](https://developers.facebook.com/docs/android/)
Read through the "[Getting Started with App Events for Android](https://developers.facebook.com/docs/app-events/getting-started-app-events-android)" tutorial and in particular, follow [step 3](https://developers.facebook.com/docs/app-events/getting-started-app-events-android#step-3--integrate-the-facebook-sdk-in-your-android-app) by adding the following into `/app/res/values/strings.xml` (or into respective `debug` or `release` build flavor)

```xml
<string name="facebook_app_id">[APP_ID]</string>
<string name="facebook_client_token">[CLIENT_TOKEN]</string>

After that, add that string resource reference to your main AndroidManifest.xml file, directly under the <application> tag.

<application android:label="@string/app_name" ...>
    ...
   	<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
   	<meta-data android:name="com.facebook.sdk.ClientToken" android:value="@string/facebook_client_token"/>
    ...
</application>

About Flutter Meta SDK

Please refer to the official SDK documentation for Facebook App Events iOS and Android respectively for the correct and expected behavior. Please report an issue if you find anything that is not working according to official documentation.

Getting involved

First of all, thank you for even considering to get involved. You are a real super :star: and we :heart: you!

Reporting bugs and issues

Use the configured Github issue report template when reporting an issue. Make sure to state your observations and expectations as objectively and informative as possible so that we can understand your need and be able to troubleshoot.

Discussions and ideas

We're happy to discuss and talk about ideas in the repository discussions and/or post your question to StackOverflow.

Feel free to open a thread if you are having any questions on how to use either the Facebook SDK as a reporting tool itself or even on how to use this plugin.

所屬分類

依賴

依賴清單 1 項

  • plugin_platform_interface^2.0.2

原始碼儲存庫

使用此套件的專案

暫無相關資料。