Skip to content Skip to sidebar Skip to footer

Integrating Facebook Sharing Into My App

Im trying to integrate Facebook sharing into my app. I am following this guide: https://developers.facebook.com/docs/sharing/android Everything went fine till it says: Add Faceboo

Solution 1:

You need to add Facebook Activity in your AndroidManifest.xml file.

<activityandroid:name="com.facebook.FacebookActivity" />

Solution 2:

Add your own custom Facebook activity in manifest along with com.facebook.FacebookActivity.

<activityandroid:name=".activity.FbActivity" /><activityandroid:name="com.facebook.FacebookActivity"android:configChanges=
          "keyboard|keyboardHidden|screenLayout|screenSize|orientation"android:theme="@android:style/Theme.Translucent.NoTitleBar"android:label="@string/app_name" />

Solution 3:

Add tools:replace="android:theme" run ok.

<activity android:name="com.facebook.FacebookActivity"          android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
      android:theme="@android:style/Theme.Translucent.NoTitleBar"
      tools:replace="android:theme"
      android:label="@string/app_name" />

Post a Comment for "Integrating Facebook Sharing Into My App"