1 | # expo-facebook
|
2 |
|
3 | Expo universal module for Facebook SDK
|
4 |
|
5 | # API documentation
|
6 |
|
7 | - [Documentation for the master branch](https://github.com/expo/expo/blob/master/docs/pages/versions/unversioned/sdk/facebook.md)
|
8 | - [Documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/facebook/)
|
9 |
|
10 | # Installation in managed Expo projects
|
11 |
|
12 | For managed [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/facebook/).
|
13 |
|
14 | # Installation in bare React Native projects
|
15 |
|
16 | For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/unimodules/react-native-unimodules) before continuing.
|
17 |
|
18 | ### Add the package to your npm dependencies
|
19 |
|
20 | ```
|
21 | expo install expo-facebook
|
22 | ```
|
23 |
|
24 | ### Configure for iOS
|
25 |
|
26 | Run `npx pod-install` after installing the npm package.
|
27 |
|
28 | ### Configure for Android
|
29 |
|
30 | No additional set up necessary.
|
31 |
|
32 | In `AndroidManifest.xml`, add the following element within your `<application>` element:
|
33 |
|
34 | ```xml
|
35 | ...
|
36 | <!-- The Facebook SDK runs FacebookInitProvider on startup and crashes if there isn't an ID here -->
|
37 | <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="fb0"/>
|
38 | </application>
|
39 | ```
|
40 |
|
41 | # Contributing
|
42 |
|
43 | Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing).
|