Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

[Fix] Update README.md #846

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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.

Expand Down