Class GraphResponse


  • public class GraphResponse
    extends Object
    Type that can be used as return value for publishing new objects to Facebook. Id, post_id and success field are accessible. Have a look at the fields and methods javadoc
    • Method Detail

      • getTimelineId

        public String getTimelineId()
        returns the id that is used for the post or comment. Normally the id of the newly object is returned, but after publishing a photo the post id is returned. So you get the id of the corresponding post without put the logic in your application. Attention: if you publish a photo without story you get the photo id here
        Returns:
        id of the new created post / comment
      • check

        protected void check()
      • isSuccess

        public boolean isSuccess()
        true if publishing of the object was successful, false otherwise. if the success field is not provided by Facebook, we check if the id field is present
      • setSuccess

        public void setSuccess​(boolean success)
        true if publishing of the object was successful, false otherwise. if the success field is not provided by Facebook, we check if the id field is present