fb-graph-api
Advanced tools
Comparing version 1.0.10 to 1.0.11
{ | ||
"name": "fb-graph-api", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "NodeJS Library for Facebook Graph API", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/CoericK/fb-graph-api", |
@@ -23,6 +23,6 @@ # NodeJS Library for Facebook Graph API | ||
// Using require() in ES5 | ||
var FBGraphAPI = require('fb-graph-api').FBGraphAPI; | ||
var FBGraphAPI = require('fb-graph-api'); | ||
// Using ES2015 import through Babel | ||
import {FBGraphAPI} from 'fb-graph-api'; | ||
import FBGraphAPI from 'fb-graph-api'; | ||
``` | ||
@@ -91,2 +91,15 @@ | ||
.catch(e => console.log('e', e)); | ||
``` | ||
### isValid | ||
[Debugs a given token](https://developers.facebook.com/docs/facebook-login/access-tokens/debugging-and-error-handling) using the App Access Token and checks if the given token was crated for the App Access Token that was given. | ||
```js | ||
FB.isValid('EAAJ3bm5M....') | ||
.then(valid => { | ||
console.log('valid', valid); // true or false | ||
}) | ||
.catch(e => console.log('e', e)); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84379
103