you have already mentioned that it is an open issue in Gradle.
If you are using ParseLoginUI as library module.
Just change the build.gradle file in ParseLoginUI itself.
provided 'com.facebook.android:facebook-android-sdk:4.0.1'
to
compile 'com.facebook.android:facebook-android-sdk:4.0.1'