diff --git a/README.md b/README.md index 59b52a99..ddc3e3d4 100644 --- a/README.md +++ b/README.md @@ -281,7 +281,7 @@ See [SharePhotoContent](/js/models/FBSharePhotoContent.js) and [SharePhoto](/js/ ```js const FBSDK = require('react-native-fbsdk'); const { - ShareApi, + ShareDialog, } = FBSDK; const photoUri = 'file://' + '/path/of/photo.png' @@ -302,7 +302,7 @@ See [ShareVideoContent](/js/models/FBShareVideoContent.js) and [ShareVideo](/js/ ```js const FBSDK = require('react-native-fbsdk'); const { - ShareApi, + ShareDialog, } = FBSDK; const videoUri = 'file://' + '/path/of/video.mp4' @@ -316,7 +316,9 @@ const shareVideoContent = { ShareDialog.show(tmp.state.shareVideoContent); ``` -#### Share API +#### Share API (Removed from `react-native-fbsdk` 1.1.2) + +* Use [Share dialogs](#Sharing) instead. Your app must have the `publish_actions` permission approved to share through the share API. You should prefer to use the Share Dialogs for an easier and more consistent experience.