Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const test = require('tap').test;
const fb = require('../lib/facebook');
const utils = require('../lib/utils');
const querystring = require('querystring');
test('fb#publishBadge', function (t) {
var accessToken = 'AAAD0ensvZAb8BAFdRG6w1ZBeIgWCINxkrAZAd1ZCSZBZC65dU2qZACYcyYyMlJRMp0CX94jr8r7aaZBal3xrVqScUZCo0aNZALXEiaEObkEEVomAZDZD';
var badgeBodyHash = 'sillybadgehash';
var userId = 'me';
fb.publishBadge(accessToken, badgeBodyHash, userId, function (err, resp) {
if (err) throw err;
t.equal(resp.status, 200);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment