0

i want to post image with description on my facebook wall using my android app..

i am using facebook sdk 3.0 .

i followed this guide, however it post only text on my wall without the image:

https://developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/

how can i post image on my facebook wall with description?

thanks alot

Adir Rahamim
  • 443
  • 1
  • 11
  • 30
  • Try this post: http://stackoverflow.com/questions/11050967/how-to-post-image-to-facebook-from-android-app – tbkn23 Apr 29 '13 at 14:54
  • i am not sure it's compatible with facebook android sdk 3.0 – Adir Rahamim Apr 29 '13 at 14:58
  • Maybe this one? http://stackoverflow.com/questions/13083419/facebook-api-3-0-add-bundle-information-to-image-upload – tbkn23 Apr 29 '13 at 15:03
  • @tbkn, thanks, what is the Request.Callback callback that i should to insert in the newUploadPhotoRequest method? – Adir Rahamim Apr 29 '13 at 15:17
  • 1
    It's a callback you can create to handle the results of the request - success or error. For example displaying a message in the UI. If you don't want a callback you can call the method without the last parameter. – tbkn23 Apr 29 '13 at 16:12
  • @tbkn, thanks alot, it work!! however it post a full size image on my facebook wall, is there any way to determine the picture uploaded size? (that it will not very big) – Adir Rahamim Apr 29 '13 at 16:19
  • It depends on the image you upload. If you want a smaller image, use a smaller `GraphObject`. Posted a full answer. – tbkn23 Apr 30 '13 at 05:29

1 Answers1

0

Check this post on how to upload an image to FaceBook:

Facebook API 3.0. - Add bundle information to image upload

You can leave the Request.Callback parameter out if you do not want anything to happen once the upload is complete. See this facebook Reference

The image size depends on the image file that you upload. The larger the image you upload, the larger it appears in facebook.

This post might help you with resizing the bitmap:

How to Resize a Bitmap in Android?

Community
  • 1
  • 1
tbkn23
  • 4,741
  • 8
  • 22
  • 43