Last updated:
0 purchases
facebook sdk
facebook_sdk #
A Flutter Plugin for integrating the Facebook SDK. For now only ShareLinkContent is implemented.
For now only Android. iOS will be next. When everything works as expected i might integrate more sharing options....
Getting Started #
Android #
Add the following to AndroidManifest.xml and replace {FB_APP_ID} with your Facebook App ID
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
<activity android:name="com.facebook.FacebookActivity" android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" android:label="@string/app_name" />
<provider android:authorities="com.facebook.app.FacebookContentProvider{FB_APP_ID}" android:name="com.facebook.FacebookContentProvider" android:exported="true"/>
copied to clipboard
Add the following to android/app/src/main/res/values/strings.xml
<string name="app_name">Your App Name</string>
<string name="facebook_app_id">{FB_APP_ID}</string>
<string name="fb_login_protocol_scheme">fb{FB_APP_ID}</string>
copied to clipboard
iOS #
Add the following to your Info.plist
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb{FB_APP_ID}</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>{FB_APP_ID}</string>
<key>FacebookDisplayName</key>
<string>Facebook SDK Example</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-share-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.