session.openForRead(new Session.OpenRequest(activity).setCallback(statusCallback).setPermissions(Arrays.asList(permissions)));
I get this error when trying to pass “publish_permission” to setPermission as above. Why? How to fix? Where are you Facebook developers?
com.facebook.FacebookException: Cannot pass a publish permission (publish_stream) to a request for read authorization
As the error message states you are trying to open a
readsession with apublishpermission. Since SDK 3.0 you have to distinguish between read and publish actions, so if you want to usepublish_streamyou have to callsession.openForPublish(orsession.reauthorizeForPublish(after your first request.