FacebookUrlExtractor
Example
new FacebookExtractor(this,"Video Url",false)
{
@Override
protected void onExtractionComplete(FacebookFile facebookFile) {
Log.e("TAG","---------------------------------------");
Log.e("TAG","facebookFile AutherName :: "+facebookFile.getAuthor());
Log.e("TAG","facebookFile FileName :: "+facebookFile.getFilename());
Log.e("TAG","facebookFile Ext :: "+facebookFile.getExt());
Log.e("TAG","facebookFile SD :: "+facebookFile.getSdUrl());
Log.e("TAG","facebookFile HD :: "+facebookFile.getHdUrl());
Log.e("TAG","---------------------------------------");
}
@Override
protected void onExtractionFail(Exception error) {
Log.e("Error","Error :: "+error.getMessage());
error.printStackTrace();
}
};
gradle
dependencies
{
implementation 'com.github.Ashusolanki:FacebookUrlExtractor:0.0.5'
}
Подробнее https://github.com/Ashusolanki/FacebookUrlExtractor