facebook_applinks 0.1.1
facebook_applinks: ^0.1.1 copied to clipboard

Flutter Android iOS

Flutter plugin for Facebook App Links.

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.

0
likes
75
pub points
0%
popularity

Flutter plugin for Facebook App Links.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

zv7lin@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

facebook_core, flutter, json_annotation

More

Packages that depend on facebook_applinks