HOW TO USE
var Twitter = require("cloud/Twitter.parse.js");
// a user that has logged in with twitter
var user = Parse.User.current();
// Works with that object if colledted otherwise :)
var authData = {
web: node web.js | |
worker: node worker.js |
var self = this; | |
var async = {}; | |
// global on the server, window in the browser | |
var root = this, | |
previous_async = root.async; | |
async.noConflict = function () { | |
root.async = previous_async; | |
return async; |
HOW TO USE
var Twitter = require("cloud/Twitter.parse.js");
// a user that has logged in with twitter
var user = Parse.User.current();
// Works with that object if colledted otherwise :)
var authData = {
var FacebookAPI = function(app_id, app_secret) { | |
return { | |
auth_url : "https://graph.facebook.com/oauth/access_token?"+ | |
"client_id=" + app_id + | |
"&client_secret=" + app_secret + | |
"&grant_type=client_credentials", | |
setAppToken: function(app_token){ | |
this.app_token = app_token; |