Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_permission() {
- FB.ensureInit(function() {
- FB.Connect.showPermissionDialog('publish_stream', function(perms) {
- re = /publish_stream/gi;
- if (!re.test(perms)) {
- alert('publish_stream denied');
- } else {
- FB.Connect.showPermissionDialog('email', function(perms) {
- re = /email|contact_email/gi;
- if (!re.test(perms)) {
- alert('email denied');
- } else {
- window.location.reload(true)
- }
- });
- }
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement