Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
fb-stm-button
Advanced tools
Readme
React JS component to render Facebook's Send-to-Messenger plugin (STM) FB Docs
Install:
npm i fb-stm-button
Import:
import FbStmButton from "fb-stm-button";
In your React JS project:
<FbStmButton appId="YOUR-APP-ID" pageId="YOUR-PAGE-ID" />
See official docs to learn more about each
pageId: PropTypes.string.isRequired,
appId: PropTypes.string.isRequired,
dataRef: PropTypes.string,
color: PropTypes.string,
size: PropTypes.string,
enforceLogin: PropTypes.bool,
ctaText: PropTypes.oneOf([
"GET_THIS_IN_MESSENGER",
"RECEIVE_THIS_IN_MESSENGER",
"SEND_THIS_TO_ME",
"GET_CUSTOMER_ASSISTANCE",
"GET_CUSTOMER_SERVICE",
"GET_SUPPORT",
"LET_US_CHAT",
"SEND_ME_MESSAGES",
"ALERT_ME_IN_MESSENGER",
"SEND_ME_UPDATES",
"MESSAGE_ME",
"LET_ME_KNOW",
"KEEP_ME_UPDATED",
"TELL_ME_MORE",
"SUBSCRIBE_IN_MESSENGER",
"SUBSCRIBE_TO_UPDATES",
"GET_MESSAGES",
"SUBSCRIBE",
"GET_STARTED_IN_MESSENGER",
"LEARN_MORE_IN_MESSENGER",
"GET_STARTED",
"SEND_TO_MESSENGER"
]),
autoLogAppEvents: PropTypes.bool,
xfbml: PropTypes.bool,
version: PropTypes.string,
language: PropTypes.string,
debug: PropTypes.bool,
subscribeEvents: PropTypes.func
import PropTypes from "prop-types";
import React from "react";
import FbStmButton from "fb-stm-button";
export default class StmBox extends React.Component {
constructor() {
super();
this.state = { stmLoaded: false };
}
events = e => {
console.log(e);
if (e.event === "rendered") this.setState({ stmLoaded: true });
};
render() {
return (
<div>
<FbStmButton
appId="YOUR-APP-ID"
pageId="YOUR-PAGE-ID"
subscribeEvents={this.events}
/>
</div>
);
}
}
FAQs
Facebook Send To Messenger Button for React JS
The npm package fb-stm-button receives a total of 8 weekly downloads. As such, fb-stm-button popularity was classified as not popular.
We found that fb-stm-button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.