@Override
	public void executeDemo(String text) {
		
		// We need additional permissions for this
		String[] permissions = {"user_tagged_places"};
		
		FacebookUtils.linkForRead(this, new SocializeAuthListener() {
			
			@Override
			public void onError(SocializeException error) {
				handleError(ListCheckinsActivity.this, error);
			}
			
			@Override
			public void onCancel() {
				handleCancel();
			}
			
			@Override
			public void onAuthSuccess(SocializeSession session) {
				
				FacebookUtils.get(ListCheckinsActivity.this, "me/tagged_places", null, new SocialNetworkPostListener() {
					
					@Override
					public void onNetworkError(Activity context, SocialNetwork network, Exception error) {
						handleError(context, error);
					}
					
					@Override
					public void onCancel() {
						handleCancel();
					}
					
					@Override
					public void onAfterPost(Activity parent, SocialNetwork socialNetwork, JSONObject responseObject) {
						try {
							handleResult(responseObject.toString(4));
						}
						catch (JSONException e) {
							handleError(parent, e);
						}
					}
				});
			}
			
			@Override
			public void onAuthFail(SocializeException error) {
				handleError(ListCheckinsActivity.this, error);
			}
		}, permissions);
	}
@Override
	public void executeDemo(String text) {
		
		
		String[] permissions = {"user_tagged_places"};
		
		FacebookUtils.linkForRead(this, new SocializeAuthListener() {
			
			@Override
			public void onError(SocializeException error) {
				handleError(ListCheckinsActivity.this, error);
			}
			
			@Override
			public void onCancel() {
				handleCancel();
			}
			
			@Override
			public void onAuthSuccess(SocializeSession session) {
				
				FacebookUtils.get(ListCheckinsActivity.this, "me/tagged_places", null, new SocialNetworkPostListener() {
					
					@Override
					public void onNetworkError(Activity context, SocialNetwork network, Exception error) {
						handleError(context, error);
					}
					
					@Override
					public void onCancel() {
						handleCancel();
					}
					
					@Override
					public void onAfterPost(Activity parent, SocialNetwork socialNetwork, JSONObject responseObject) {
						try {
							handleResult(responseObject.toString(4));
						}
						catch (JSONException e) {
							handleError(parent, e);
						}
					}
				});
			}
			
			@Override
			public void onAuthFail(SocializeException error) {
				handleError(ListCheckinsActivity.this, error);
			}
		}, permissions);
	}
@ Override public void executeDemo ( String text ) { // We need additional permissions for this String [ ] permissions = { "user_tagged_places" } ; FacebookUtils . linkForRead ( this , new SocializeAuthListener ( ) { @ Override public void onError ( SocializeException error ) { handleError ( ListCheckinsActivity . this , error ) ; } @ Override public void onCancel ( ) { handleCancel ( ) ; } @ Override public void onAuthSuccess ( SocializeSession session ) { FacebookUtils . get ( ListCheckinsActivity . this , "me/tagged_places" , null , new SocialNetworkPostListener ( ) { @ Override public void onNetworkError ( Activity context , SocialNetwork network , Exception error ) { handleError ( context , error ) ; } @ Override public void onCancel ( ) { handleCancel ( ) ; } @ Override public void onAfterPost ( Activity parent , SocialNetwork socialNetwork , JSONObject responseObject ) { try { handleResult ( responseObject . toString ( 4 ) ) ; } catch ( JSONException e ) { handleError ( parent , e ) ; } } } ) ; } @ Override public void onAuthFail ( SocializeException error ) { handleError ( ListCheckinsActivity . this , error ) ; } } , permissions ) ; }
/* (non-Javadoc)
@see com.socialize.demo.DemoActivity#executeDemo()
/ * ( non - Javadoc )