Skip to content

Releases: seeden/react-facebook

v11.0.1

04 Mar 20:46
v11.0.1

Choose a tag to compare

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

15 Nov 14:02

Choose a tag to compare

Updated chat

11 Nov 15:09

Choose a tag to compare

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

25 Mar 22:06

Choose a tag to compare

first version with hooks
useApi
useShare

added isMount

10 Mar 21:35

Choose a tag to compare

added sideEffects: false
added isMounted

7.0.2

18 Feb 21:52

Choose a tag to compare

Moved loading to body.
Fixed problem with undefined token

Added group component

09 Oct 18:28

Choose a tag to compare

Added group component
Updated readme

New components

09 Oct 18:23

Choose a tag to compare

Added new components
Profile => get user profile
Status => get login status
Subscribe => subscribe to event
updated documentation

6.0.4

05 Oct 15:44

Choose a tag to compare

All components were rewritten.
Please take a look on Readme.
onResponse => onCompleted
support React 16.x

5.0.2

28 Mar 13:36

Choose a tag to compare

propTypes => flow
added EmbeddedVideo
removed default props (we will use facebook default props)