demo/src/com/socialize/demo/implementations/facebook/GetPermissionsActivity.java
@Override
	public void executeDemo(String text) {
		
		String token = FacebookUtils.getAccessToken(this);
		
		if(!StringUtils.isEmpty(token)) {
			FacebookUtils.getCurrentPermissions(this, token, new OnPermissionResult() {
				@Override
				public void onError(SocializeException error) {
					handleError(GetPermissionsActivity.this, error);
				}
				
				@Override
				public void onSuccess(String[] permissions) {
					handleResults(Arrays.asList(permissions));
				}
			});
		}
		else {
			handleError(this, new SocializeException("Not signed into Facebook"));
		}
	}
@Override
	public void executeDemo(String text) {
		
		String token = FacebookUtils.getAccessToken(this);
		
		if(!StringUtils.isEmpty(token)) {
			FacebookUtils.getCurrentPermissions(this, token, new OnPermissionResult() {
				@Override
				public void onError(SocializeException error) {
					handleError(GetPermissionsActivity.this, error);
				}
				
				@Override
				public void onSuccess(String[] permissions) {
					handleResults(Arrays.asList(permissions));
				}
			});
		}
		else {
			handleError(this, new SocializeException("Not signed into Facebook"));
		}
	}
@ Override public void executeDemo ( String text ) { String token = FacebookUtils . getAccessToken ( this ) ; if ( ! StringUtils . isEmpty ( token ) ) { FacebookUtils . getCurrentPermissions ( this , token , new OnPermissionResult ( ) { @ Override public void onError ( SocializeException error ) { handleError ( GetPermissionsActivity . this , error ) ; } @ Override public void onSuccess ( String [ ] permissions ) { handleResults ( Arrays . asList ( permissions ) ) ; } } ) ; } else { handleError ( this , new SocializeException ( "Not signed into Facebook" ) ) ; } }
/* (non-Javadoc)
@see com.socialize.demo.DemoActivity#executeDemo()
/ * ( non - Javadoc )