facebook_applinks

Flutter plugin for Facebook App Links.

Android

    <!-- src/main/AndroidManifest.xml -->
    <application>
        <meta-data
            android:name="facebook_applinks"
            android:value="\${FACEBOOK_APP_LINKS}" />

        <activity android:name=".MainActivity">
            <!-- facebook applinks -->
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />

                <data android:scheme="\${FACEBOOK_APP_LINKS}" />
            </intent-filter>
        </activity>
    </application>
// android/app/build.gradle
android {
    defaultConfig {
        manifestPlaceholders = [
                FACEBOOK_APP_LINKS : "your facebook app link scheme",
        ]
    }
}

iOS

//  app.xcconfig

FACEBOOK_APP_LINKS=your facebook app link scheme
	<!-- Info.plist -->
	<key>CFBundleURLTypes</key>
	<array>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLName</key>
			<string>facebook_applinks</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>$(FACEBOOK_APP_LINKS)</string>
			</array>
		</dict>
	</array>

Flutter

# pubspec.yaml
dependencies:
  facebook_applinks:
    git:
      url: https://github.com/rxreader/flutter_facebook.git
      path: facebook_applinks
# pubspec.yaml
dependencies:
  facebook_applinks: ^${latestVersion}

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Libraries