Android - How to post a comment using Facebook SDK 4.0.1 -


is there way post comment using facebooksdk 4.0.1. because request removed in new sdk. assume had login , got "publish_actions" permission.

private void facebooklogin() {     loginmanager.getinstance().loginwithreadpermissions(this, arrays.aslist("user_friends")); }  private void facebooklogout (){     loginmanager.getinstance().logout(); }  private void facebookpost() {     //check login     accesstoken accesstoken = accesstoken.getcurrentaccesstoken();     if (accesstoken == null) {         log.d(tag, ">>>" + "signed out");         status = status.post;         facebooklogin();         return;     } else {         log.d(tag, ">>>" + "signed in");         status = status.none;     }     if (accesstoken.getpermissions().contains("publish_actions")) {         log.d(tag, ">>>" + "contain publish_actions");          //i wanna post comment in here     } else {         log.d(tag, ">>>" + "not contain publish_actions");          loginmanager.getinstance().loginwithpublishpermissions(this, arrays.aslist("publish_actions"));     } } 

have tried sharing using com.facebook.share.widget.shareapi class

shareapi.share(content,null); 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -