Add graph api method to javascript
Permission update.