Socket
Socket
Sign inDemoInstall

socializr

Package Overview
Dependencies
14
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

42

lib/providers/facebook.js

@@ -19,3 +19,10 @@ var stream = require('stream')

function Page(id, accessToken){
this.id = id;
this.accessToken = accessToken;
};
function PubSubConnection(secret){

@@ -113,3 +120,28 @@ this.appSecret = secret;

Facebook.prototype.getPages = function(user, token, cb){
this._graphRequest( user + '/accounts', 'GET', {
access_token: token
}, function(res){
cb&&cb(res);
});
};
Facebook.prototype.install = function(pageId, token, cb){
this._graphRequest( pageId + '/tabs', 'POST', {
app_id: this.appId,
access_token: token
}, function(res){
cb&&cb(res);
});
};
Facebook.prototype.uninstall = function(pageId, token){
this._graphRequest( pageId + '/tabs/app_' + this.appId, 'DELETE', {
access_token: token
}, function(){
});
};
Facebook.prototype.pipeSubscription = function(){

@@ -130,12 +162,8 @@ var _this = this;

var _this = this;
return function(req, res, next){
console.log(req.query);
return function(req, res){
if( _this.isVerifyToken( req.query['hub.verify_token'])){
res.send(req.query['hub.challenge']);
res.send( req.query['hub.challenge']);
}else {
res.send('false');
res.send(401);
}
next();
};

@@ -142,0 +170,0 @@ };

2

package.json
{
"name": "socializr",
"version": "0.0.5",
"version": "0.0.6",
"description": "Read data streams from several social networks.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc