Android, Facebook SDK 3.14 share photo on wall - android

I would like to read image from SD-card and then post in to facebook wall. I use lastest Facebook SDK 3.14. I google about it a lot and I found a lot of code using Facebook SDK Facebook object and AsyncFacebookRunner object but they are depricated now and I dont want to use it. I try to use WebDialog from lastest SDK and it is works great except that it takes link to image already exist in WEB and I dont know how to post image from my SD-card. I google a little bit more and I read that some people do that by uploading image first to user gallery and then use WebDialog to share image uploaded to gallery. This approach not convince me because image is on wall twice. Once after upload image to gallery and second when it is share on wall. My question is:
1) Is there any way to share image from SD-card to facebook wall?
2) If thre isnt any way to share image from SD-card to facebook wall, can I upload photo to facebook users gallery without any posting it on wall so I can share it by myself later?
3) Is there any other trick to perform this task?

Related

How to share image on istagram?

Hello every one
Is there any tutorial to share image on instagram without using the share intent. Till now ihave used the share intent but . Problem is this if instagram is not installed on phone then it will not upload image . So i want to upload image like facebook is doing Please help me.
Thanks
There is no way to post an image to Instagram except through the Instagram app.

Image Type of Profile Picture Downloaded from Facebook

In my android app, I have downloaded profile pictures of Facebook users using the Graph API: "http://graph.facebook.com/" + params[0]+ "/picture?width=150"
I would like to save it to the local storage private to the app but I don't know what image type Facebook uses to send to Graph API users. Does anyone know?
According to this question asked here it is gif for those who have not uploaded picture and jpg for those who have. How to fetch facebook profile picture in png format? and why is it hard to load it to a bitmap data type and decode it to any file type you want?

How to know when to update my facebook profile pic from cache?

In my app, am caching facebook profile pics in sdcard (for caching) with filenames stored as URL link "http://graph.facebook.com/1146636239/picture" --> Something like this.
Whenever i look for download for the profile image, i check in sdcard and pull up the image.
Suppose if my friend has changed his profile pic, how will i know to download the new updated image ? (rather than picking from sdcard.)
Is there any api to know if profile pic has changed wrt to a time stamp ?
Any insights would be helpful.
Thanks

Image share to facebook from android application

In my android application I am able to share text to facebook wall via facebook SDK for android. Can I use this to share images too directly from my application. I wanted the images to be shared from a url given through my application that changes dynamically.Any help please
Visit this link.
The code you have to write will be something like this
bundle.putString("name", "name you want to give");
And similarly you can add another parameters to the image.

how to Upload Photo in facebook from gallery in android

I have to do facebook android integration project. But I have to pass simple live image URl than send it. But how to pick image in gallery and upload to facebook?
Picking images is described in this question. Try to search before you ask something.

Categories

Resources