Guest User

Untitled

a guest
Aug 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Testing for permissions for wall delivery
  2. var query = FB.Data.query('select stream_publish from permissions where uid={0}', session["uid"]);
  3. query.wait(function(rows) {
  4. if(rows[0]['stream_publish']){
  5. alert("user has permissions");
  6. }
  7. else{
  8. alert("user does not have permissions");
  9. }
  10. });
Add Comment
Please, Sign In to add comment