Releases: seeden/react-facebook
React 16
Stateless components
I refactored almost all components to stateless react components.
Added Parser and InitFacebook component
[Breaking change] - Login, Share and Feed Component are using facebook.ui instead of own popup window. All components now support event onReady, onResponse and onError
Bug fixing
Fixed appId in the share dialog
Fixed domain in the Facebook API
Big refactoring
I have replaced all callbacks with async/await functions.
[Braking change] - Parameter appID was changed to appId
[Braking change] - Default facebook version is v2.9
[Braking change] - Login has two parameters onError and onResponse instead of just onResponse
Login and Share component has two new properties "render" and "component". You can use your own components with this "high-order-components". You can find example in the readme
Use babel polyfill for backward compatibility with older browsers
fixed PropTypes
We are using prop-types.
Share onClick support
Share will call onClick of the children if it is presented
added missing referral parameter
Improved page component
Refactored page component (added missing attributes)
Braking change in Login component onSubmit => onResponse
updated deps
added jest and enzyme
domain support
you can change facebook SDK domain in