Upload Image on Facebook using sdk 3.19.0 from android -


I use this code to share links and images from the URL

  Private UILifeHelper UI Helper String FB Photo Attoder = Faucet; Protected void onCreate (bundled saved instenstate) {super.onCreate (SavedInstanceState); UiHelper = New UiLifecycleHelper (this, blank); UiHelper.onCreate (savedInstanceState); } Zero btn_clicked (see view) {FacebookDialog Share Dialog = 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 this is working fine but the issue is that I want to upload an image to Facebook and send it to the set in the picturePicture, how can I do this?

Po Things I've investigated on Google are mostly old.

I'm not sure that you're thinking it's right.

Facebook Share Dialog allows you to post a picture with a URL, a link, a description, caption and other things like a name.

All these data will be posted without permission, without permission.

If you want to upload and post a picture from the local, then you need to do something like this:

  request request = request. NewewploadPhotoRequest (session ((Bitmapdroubl) getResources () .getDrawable (R.drawable.picture)). GetBitmap (), callback); RequestAsyncTask function = New RequestAsyncTask (request); Task.execute ();  

The problem is that you will need to add "publish" responses to your Facebook app, and login to Facebook to receive an active "session".

More info here ->

And here ->

Can I recommend uploading my image to a place like a Dropbox public Folder, and get url from there? It is infinitely easy


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -