All Projects → 99points → Facebook Reactions Js

99points / Facebook Reactions Js

A simple & easy solution to add Facebook style "Like" button with reactions.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Facebook Reactions Js

jQuery-Facebook-Stream
Display all your wall post, comments & likes in groups or fans page.
Stars: ✭ 24 (-42.86%)
Mutual labels:  jquery-plugin, facebook
Facebook-Album-Browser
jQuery plugin for browsing public albums of a Facebook account
Stars: ✭ 76 (+80.95%)
Mutual labels:  jquery-plugin, facebook
Facebook
A Facebook Graph API SDK For Go.
Stars: ✭ 948 (+2157.14%)
Mutual labels:  facebook
Jquery Sse
jQuery Plugin for Server-Sent Events (SSE) EventSource Polyfill
Stars: ✭ 37 (-11.9%)
Mutual labels:  jquery-plugin
Feeds
Importiert Daten aus API-Quellen wie Facebook, Instagram, Twitter, YouTube, Vimeo oder RSS (ehemals YFeed)
Stars: ✭ 34 (-19.05%)
Mutual labels:  facebook
Parallax background
jQuery parallax background plugin based on GSAP
Stars: ✭ 30 (-28.57%)
Mutual labels:  jquery-plugin
Jquery.tabslideout.js
jQuery plugin to create a side/top/bottom tab that slides out to show a feedback form, contact form, notepad etc.
Stars: ✭ 35 (-16.67%)
Mutual labels:  jquery-plugin
Gtm In Viewport Manager
A manager of in-viewport events for GTM (Google Tag Manager).
Stars: ✭ 20 (-52.38%)
Mutual labels:  jquery-plugin
Nativescript Plugin Firebase
🔥 NativeScript plugin for Firebase
Stars: ✭ 990 (+2257.14%)
Mutual labels:  facebook
Ionic Firebase Chat
Create a Real Time Chat App with Ionic && Firebase
Stars: ✭ 33 (-21.43%)
Mutual labels:  facebook
Fbplus
FBplus.badge: alternative facebook badge for pages |
Stars: ✭ 36 (-14.29%)
Mutual labels:  facebook
Jquery.lazy
A lightweight, fast, feature-rich, powerful and highly configurable delayed content, image and background lazy loading plugin for jQuery & Zepto.
Stars: ✭ 965 (+2197.62%)
Mutual labels:  jquery-plugin
Afb instant articles
allfacebook Instant Articles - The WordPress Plugin for facebook instant articles.
Stars: ✭ 31 (-26.19%)
Mutual labels:  facebook
React Native Swipeable Cards Demo
Facebook-style swipeable cards with React Native Interactable.
Stars: ✭ 36 (-14.29%)
Mutual labels:  facebook
Grain
The Entire History of You
Stars: ✭ 30 (-28.57%)
Mutual labels:  facebook
Jquery Keyfilter
This plugin filters keyboard input by specified regular expression.
Stars: ✭ 37 (-11.9%)
Mutual labels:  jquery-plugin
Sticky Nav
A jQuery plugin make the navbar sticky, smart anchor link highlighting, smooth scrolling. Simple and powerful.
Stars: ✭ 21 (-50%)
Mutual labels:  jquery-plugin
Nativescript Keyframes
Facebook Keyframes plugin - if CSS animations don't cut it for ya
Stars: ✭ 32 (-23.81%)
Mutual labels:  facebook
Social Post Bundle
Symfony bundle to publish status updates on Facebook, LinkedIn and Twitter.
Stars: ✭ 35 (-16.67%)
Mutual labels:  facebook
Elastic Columns
A jQuery plugin designed to be used as an alternative to the well-known Isotope library.
Stars: ✭ 39 (-7.14%)
Mutual labels:  jquery-plugin

Facebook Style Reactions Plugin

gif

Developed by: Zeeshan Rasool (Founder at http://www.99points.info & PHPWallScript)

About The Plugin

This plugin allows you to generate a like button similar in Facebook style with option to select different reactions from the list. i-e Like, haha, sad, wow etc.

With very simple HTML you can convert the simple button to an interactive facebook style reaction button which will submit the selection a user will made back to the database.

Demo

See the examples here.

How To Use

The button HTML will look like this:



<a class="FB_reactions" data-reactions-type='horizontal' data-unique-id="1" data-emoji-class="">
	<span>Like</span>
</a>

we can change the default button text which is LIKE in this case to anything you want. The class name FB_reactions is also changable as long as the same names in the css are also updated. data-reactions-type='horizontal', data-unique-id="1" and data-emoji-class="" are required though.

In above, you can change data-reactions-type='horizontal' to data-reactions-type='vertical' to change the reaction popup position from horizontal to vertical.

data-unique-id="1" is the control ID which we will assign to each button so we should be able to know which button is clicked. This is for backend purpose where we need to know against which button/control we have to store the reaction selected by any user. So either this can be a unique random number for all controls on same page or we can assign some unique IDs etc.

data-emoji-class will be used to set default class when the page will be loaded. It can have any of these classes like, love, haha, wow, sad, angry. If we will leave it empty, it will be considered "like" by default.

Example to make "Wow" selected by default:

<a class="FB_reactions" data-reactions-type='vertical' data-unique-id="1" data-emoji-class="wow">   
	<span> WOW </span>
</a>

To initiate the reactions:

$('.FB_reactions').facebookReactions();

Parameters:

We have three types of required data attributes:

Data Attributes

data-reactions-type: horizontal and vertical

data-unique-id: Any uniqe number or ID for each instance on same page.

data-emoji-class: like, love, haha, wow, sad, angry

Passing the callback URL:


$('.FB_reactions').facebookReactions({
	postUrl: "save.php"
});

Once any user will chose a reaction, the ajax call will be made to save the selection of that button. Here the Ajax call will automatically pass the selection and control ID as POST params to save.php

License

Copyright (c) 2017 Zeeshan Rasool, http://wallscriptclone.com/ & http://www.99points.info

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

 


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].