Skip to content Skip to sidebar Skip to footer

Share Text And Image Together Using Facebook Sdk In Android

I'm using facebook SDK for share text and image in Android.I have used following code and its working for share text but how to share image together.I'm so confused about this.If a

Solution 1:

Hey this code might be helpful,

Bundleparameters=newBundle();
                parameters.putString("message", category_item_name_desc.getText().toString());
                parameters.putString("picture", categoryItemsModel.getImageUrl());
                parameters.putString("caption", txtDescription_desc.getText().toString());
                facebook.request("/me/feed", parameters, "POST");

You can add text by adding paramater as "caption"

Post a Comment for "Share Text And Image Together Using Facebook Sdk In Android"