I am sharing link and Image from URL using this code
private UiLifecycleHelper uiHelper
String fbPhotoAddress = null;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
uiHelper = new UiLifecycleHelper(this, null);
uiHelper.onCreate(savedInstanceState);
}
void btn_clicked(View view)
{
FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(this)
.setApplicationName("fiver").
setLink("https://play.google.com/store/")
.setPicture("http://www.sweetkidsapps.com/wp-content/uploads/2013/02/cool-coloring-great-kids-app.jpg")
.build();
uiHelper.trackPendingDialogCall(shareDialog.present());
}
and it is working fine but the issue is that I want to upload image on Facebook and get its URL to send in setPicture, How can I do this?
ps Things that I checked on Google are mostly outdated.