🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

react-social

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-social - npm Package Compare versions

Comparing version
1.6.2
to
1.7.0
+1
-1
bower.json

@@ -6,3 +6,3 @@ {

],
"version": "1.6.2",
"version": "1.7.0",
"homepage": "https://github.com/olahol/react-social",

@@ -9,0 +9,0 @@ "description": "React social buttons and counts for Facebook, Pinterest, Google etc ...",

@@ -0,1 +1,5 @@

##### 1.7.0 (2017-01-20)
* Upgrade Facebook interface.
##### 1.6.2 (2016-12-06)

@@ -2,0 +6,0 @@

{
"name": "react-social",
"version": "1.6.2",
"version": "1.7.0",
"description": "React social buttons and counts for Facebook, Pinterest, Google etc ...",

@@ -5,0 +5,0 @@ "main": "react-social.js",

@@ -107,2 +107,3 @@ ;(function (root, factory) {

, url: React.PropTypes.string
, token: React.PropTypes.string
}

@@ -119,2 +120,3 @@

url: location
, token: ""
, element: "span"

@@ -181,3 +183,3 @@ , onCount: function () { }

this.props.element
, spread(this.props, ["element", "url", "onCount"])
, spread(this.props, ["element", "url", "onCount", "token"])
, this.state.count

@@ -258,3 +260,12 @@ );

, constructUrl: function () {
var url = "https://graph.facebook.com/?callback=@&id=" + encodeURIComponent(this.props.url);
var url = "";
if (!this.props.token) {
url = "https://graph.facebook.com/?callback=@&id=" + encodeURIComponent(this.props.url);
} else {
url = "https://graph.facebook.com/v2.8/?callback=@"
+ "&id=" + encodeURIComponent(this.props.url)
+ "&access_token=" + encodeURIComponent(this.props.token);
}
return url;

@@ -409,3 +420,7 @@ }

if (this.props.sharer) {
return "https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(this.props.url)
return "https://www.facebook.com/dialog/share?"
+ "app_id=" + encodeURIComponent(this.props.appId)
+ "&display=popup&caption=" + encodeURIComponent(this.props.message)
+ "&href=" + encodeURIComponent(this.props.url)
+ "&redirect_uri=" + encodeURIComponent("https://www.facebook.com/")
}

@@ -412,0 +427,0 @@

@@ -63,2 +63,6 @@ # react-social

##### token (FacebookCount)
Optional facebook access token.
##### onCount

@@ -133,3 +137,7 @@

Facebook has 2 different share dialogs. By default we're showing Feed Dialog which has more options, but supports only sharing to user's feed. You can set `sharer` option to `true` and we'll show Share Dialog where user can choose between their feed and also pages they have access to.
Facebook has 2 different share dialogs. By default we're showing Feed
Dialog which has more options, but supports only sharing to user's
feed. You can set `sharer` option to `true` and we'll show Share Dialog
where user can choose between their feed and also pages they have
access to.

@@ -164,2 +172,3 @@ ## Styles

* Alexey Balmasov (@balmasich)
* Amitom (@Amitom)

@@ -166,0 +175,0 @@