Skip to content

Commit

Permalink
Release 6.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
seeden committed Oct 11, 2018
1 parent f891a5d commit dd20066
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -428,7 +428,8 @@ export default class Example extends Component {
## User Profile

This component will not sign user. You need to do that with another component.
Default scope: 'id', 'first_name', 'last_name', 'middle_name', 'name', 'name_format', 'picture', 'short_name', 'email'
Default scope: 'id', 'first_name', 'last_name', 'middle_name', 'name', 'name_format', 'picture', 'short_name', 'email'.
If profile is undefined login status !== LoginStatus.CONNECTED

```js
import React, { Component} from 'react';
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-facebook",
"version": "6.0.13",
"version": "6.0.14",
"description": "Facebook components like a Login button, Like, Share, Comments, Embedded Post/Video, Messenger Chat and others",
"author": {
"name": "Zlatko Fedor",
Expand Down
3 changes: 3 additions & 0 deletions src/Profile.jsx
Expand Up @@ -49,11 +49,14 @@ export default class Profile extends Component<Props, State> {
loading: false,
error: undefined,
});

return;
}

const profile = await api.getProfile({
fields,
});

this.setState({
profile,
loading: false,
Expand Down

0 comments on commit dd20066

Please sign in to comment.