These are the urls to the Instagram Video files, so you can stream or download them.
To always build from the latest commit with all updates. Add the JitPack repository:
repositories {
maven { url "https://jitpack.io" }
}
And the dependency:
dependencies
{
implementation 'com.github.Ashusolanki:FacebookUrlExtractor:0.0.5'
}
#FacebookExtractor
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();
}
};
#Facebook File
getUrl();
getExt();
getFilename();
getAuthor();
getSdUrl();
getHdUrl();