requestNewPublishPermissions for facebook android
-
21-12-2019 - |
Question
Currently I check activeSession.getPermissions().contains("publish_actions") and if it returns false I am requesting for permission
private static final String PERMISSION = "publish_actions";
if(activeSession.getPermissions().contains("publish_actions")) {
postPhotoToFacebook();
} else {
activeSession.requestNewPublishPermissions(new Session.NewPermissionsRequest(this, PERMISSION));
}
And in Session.Callback, activeSession has permission "publish_actions" only if Device have already installed facebook application, But If device have not facebook application and logging through FBDialog, its always returns false to activeSession.getPermissions().contains("publish_actions")
Solution
if you are using Facebook sdk 3.14.x+ thn after april 30th facebook has changed the application testing and submission process. Posted answer regarding permission related. check this link
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow