Releases: seeden/react-facebook
v11.0.1
v11.0.1
Breaking Changes (from 10.x)
- isLoading renamed to loading across all hooks and render props
- availableLocales removed from useLocale
New
- useGraphAPI hook for typed Graph API calls with loading/error/data states
- useDialog hook for opening Facebook dialogs programmatically
- ReactPixel standalone API (works without a provider)
- FacebookErrorBoundary component for handling SDK errors (ad blockers, network failures)
- logout added to useLogin hook
- useFeed and useSend hooks exported from main entry point
Fixed
- SSR safety: all window/document access guarded, no more window is not defined in Next.js
- Next.js App Router: 'use client' directives on all components and hooks
- XFBML parse: social plugins (Like, Share, Comments, Embedded Posts/Videos) now render correctly
- Facebook SDK script loading: 10s timeout, onerror handler, retry support
- Pixel script load errors now properly reject instead of silently resolving
- useProfile race conditions on unmount
- Context re-renders reduced with memoization
DX
- Explicit TypeScript return types on all hooks
- All public types exported from main entry point
- JSDoc with @example blocks on all hooks
- Error messages prefixed with [react-facebook]
Docs
- New documentation site at seeden.github.io/react-facebook
- Migration guides for Facebook Login and Pixel setup
Full Changelog: 9.0.12...v11.0.1
Updated message us
Used html5 attribute for color and size.
More info https://developers.facebook.com/docs/messenger-platform/reference/web-plugins#message_us%2F
Updated chat
Deprecation Notice
minimized attribute is now deprecated.
Please use greeting_dialog_display to customize your plugin instead. The greeting_dialog_delay attribute will take precedence of the minimized attribute
more info:
https://developers.facebook.com/docs/messenger-platform/reference/web-plugins#attributes
welcome hooks
first version with hooks
useApi
useShare
added isMount
added sideEffects: false
added isMounted
7.0.2
Added group component
Added group component
Updated readme
New components
Added new components
Profile => get user profile
Status => get login status
Subscribe => subscribe to event
updated documentation