New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-fb-like

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-fb-like

React component for facebook like button

  • 0.5.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

#React FB Like React component for facebook Like and Share button!

##How to install Live Demo

npm install react-fb-like --save

##How to use

var ReactFBLike = require('react-fb-like');
<ReactFBLike language="ko_KR" appId="717589285046812" version="v2.12" />

ES2015 style

import ReactFBLike from 'react-fb-like';

##It renders only once If you go to the another page and come back to where this component locates, sometimes this component disappears. This is because this component is rendered only once when FB script loads. So if you want to manually show this component again, you should call FB.XFBML.parse();

##Result reactfblike

##Props You can use all props that facebook supports. But be careful! You should use camelCase. And attribute ref is changed to reference because it is a reserved word in React. Official Documentation

###Required props

  • language(such as en_US, ko_KR, fr_FR) supported language
  • appId
  • version: version of facebook-jssdk, default: 'v2.12'

###Other props

  • action
  • colorscheme
  • href
  • kidDirectedSite
  • layout
  • reference(which is a ref attribute in facebook)
  • share
  • showFaces
  • width

Demo

Live Demo

Wanna Contribute?

Please contribute to this package via Pull Request, or you can open Issues!

License

MIT

Keywords

FAQs

Package last updated on 20 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc