facebook4j.api
Interface NoteMethods

All Known Subinterfaces:
Facebook

public interface NoteMethods

Author:
Ryuji Yamashita - roundrop at gmail.com

Method Summary
 String commentNote(String noteId, String message)
          Comments on the note.
 String createNote(String subject, String message)
          Creates the current user's/page's note.
 String createNote(String id, String subject, String message)
          Creates the note on behalf of a user/page.
 Note getNote(String noteId)
          Returns a note.
 Note getNote(String noteId, Reading reading)
          Returns a note.
 ResponseList<Comment> getNoteComments(String noteId)
          Returns all of the comments on a note.
 ResponseList<Comment> getNoteComments(String noteId, Reading reading)
          Returns all of the comments on a note.
 ResponseList<Like> getNoteLikes(String noteId)
          Returns the likes made on a note.
 ResponseList<Like> getNoteLikes(String noteId, Reading reading)
          Returns the likes made on a note.
 ResponseList<Note> getNotes()
          Returns the current user's/page's notes.
 ResponseList<Note> getNotes(Reading reading)
          Returns the current user's/page's notes.
 ResponseList<Note> getNotes(String id)
          Returns a user's/page's notes.
 ResponseList<Note> getNotes(String id, Reading reading)
          Returns a user's/page's notes.
 boolean likeNote(String noteId)
          Likes the note.
 boolean unlikeNote(String noteId)
          Unlikes the note.
 

Method Detail

getNotes

ResponseList<Note> getNotes()
                            throws FacebookException
Returns the current user's/page's notes.

Returns:
notes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notes - Facebook Developers, Page#notes - Facebook Developers

getNotes

ResponseList<Note> getNotes(Reading reading)
                            throws FacebookException
Returns the current user's/page's notes.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
notes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notes - Facebook Developers, Page#notes - Facebook Developers

getNotes

ResponseList<Note> getNotes(String id)
                            throws FacebookException
Returns a user's/page's notes.

Parameters:
id - the ID of a user/page
Returns:
notes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notes - Facebook Developers, Page#notes - Facebook Developers

getNotes

ResponseList<Note> getNotes(String id,
                            Reading reading)
                            throws FacebookException
Returns a user's/page's notes.

Parameters:
id - the ID of a user/page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
notes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notes - Facebook Developers, Page#notes - Facebook Developers

createNote

String createNote(String subject,
                  String message)
                  throws FacebookException
Creates the current user's/page's note.

Parameters:
subject - the subject of the note
message - note content
Returns:
The new note ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notes - Facebook Developers, Page#notes - Facebook Developers

createNote

String createNote(String id,
                  String subject,
                  String message)
                  throws FacebookException
Creates the note on behalf of a user/page.

Parameters:
id - the ID of a user/page
subject - the subject of the note
message - note content
Returns:
The new note ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notes - Facebook Developers, Page#notes - Facebook Developers

getNote

Note getNote(String noteId)
             throws FacebookException
Returns a note.

Parameters:
noteId - the ID of the note
Returns:
note
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note - Facebook Developers

getNote

Note getNote(String noteId,
             Reading reading)
             throws FacebookException
Returns a note.

Parameters:
noteId - the ID of the note
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
note
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note - Facebook Developers

getNoteComments

ResponseList<Comment> getNoteComments(String noteId)
                                      throws FacebookException
Returns all of the comments on a note.

Parameters:
noteId - the ID of a note
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#comments - Facebook Developers

getNoteComments

ResponseList<Comment> getNoteComments(String noteId,
                                      Reading reading)
                                      throws FacebookException
Returns all of the comments on a note.

Parameters:
noteId - the ID of a note
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#comments - Facebook Developers

commentNote

String commentNote(String noteId,
                   String message)
                   throws FacebookException
Comments on the note.

Parameters:
noteId - the ID of the note
message - comment text
Returns:
The new comment ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#comments - Facebook Developers

getNoteLikes

ResponseList<Like> getNoteLikes(String noteId)
                                throws FacebookException
Returns the likes made on a note.

Parameters:
noteId - the ID of a note
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#likes - Facebook Developers

getNoteLikes

ResponseList<Like> getNoteLikes(String noteId,
                                Reading reading)
                                throws FacebookException
Returns the likes made on a note.

Parameters:
noteId - the ID of a note
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#likes - Facebook Developers

likeNote

boolean likeNote(String noteId)
                 throws FacebookException
Likes the note.

Parameters:
noteId - the ID of the note
Returns:
true if like is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#likes - Facebook Developers

unlikeNote

boolean unlikeNote(String noteId)
                   throws FacebookException
Unlikes the note.

Parameters:
noteId - the ID of the note
Returns:
true if unlike is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#likes - Facebook Developers


Copyright © 2019. All rights reserved.