I have a button click to login facebook,but sometimes this code can\'t work. throw exception:Caused by:
com.facebook.FacebookException: Cannot pass a publis
You can't call openForPublish unless your app has already been granted basic permissions first.
Separate out your PERMISSIONS list into PERMISSIONS_READ and PERMISSIONS_PUBLISH, and put "email" into the PUBLISH side. Then call openForRead, and then requestNewPublishPermissions when your session is open.