public T photos_addTags ( Long photoId , Collection < PhotoTag > tags ) throws FacebookException , IOException { assert ( photoId > 0 ) ; assert ( null != tags && ! tags . isEmpty ( ) ) ; JSONArray jsonTags = new JSONArray ( ) ; for ( PhotoTag tag : tags ) { jsonTags . add ( tag . jsonify ( ) ) ; } return this . callMethod ( FacebookMethod . PHOTOS_ADD_TAG , new Pair < String , CharSequence > ( "pid" , photoId . toString ( ) ) , new Pair < String , CharSequence > ( "tags" , jsonTags . toString ( ) ) ) ; }
Adds several tags to a photo .