Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8875469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:58:55+00:00 2026-06-14T18:58:55+00:00

I want to share photo with caption but text caption is not shared on

  • 0

I want to share photo with caption but text caption is not shared on Facebook Is there any way to share a text with photo on Facebook using send intent.

List<Intent> targetedShareIntents = new ArrayList<Intent>();
Intent share = new Intent(android.content.Intent.ACTION_SEND);
share.setType("image/jpeg");
List<ResolveInfo> resInfo = getPackageManager().queryIntentActivities(share, 0);
if (!resInfo.isEmpty()){
    for (ResolveInfo info : resInfo) {
        Intent targetedShare = new Intent(android.content.Intent.ACTION_SEND);
        targetedShare.setType("image/jpeg"); // put here your mime type
        if (info.activityInfo.packageName.toLowerCase().contains(nameApp) || info.activityInfo.name.toLowerCase().contains(nameApp)) {
            targetedShare.putExtra(Intent.EXTRA_SUBJECT, "Virtual Mirror Photo");
            targetedShare.putExtra(Intent.EXTRA_TEXT,"This photo is created by Virtual Mirror App.\n\nInfoshore Team");
            targetedShare.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(imagePath)) );
            targetedShare.setPackage(info.activityInfo.packageName);
            targetedShareIntents.add(targetedShare);
            isAppAvaiable = true;
        }
    }
    Intent chooserIntent = Intent.createChooser(targetedShareIntents.remove(0), "Select app to share");
    chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, targetedShareIntents.toArray(new Parcelable[]{}));
    startActivity(chooserIntent);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:58:56+00:00Added an answer on June 14, 2026 at 6:58 pm

    As per the Facebook’s Platform Policies, you cannot pre-fill the share dialog using
    Intent.EXTRA_TEXT. It is usually thought to be a bug, but as per a Bug Report filed here and also, here, Facebook clearly mentions that this is not the case (it’s not a bug).

    You can read more about their Platform Policies specifically, Platform Policy IV.2

    Quote from Platform Policy IV.2:

    You must not pre-fill any of the fields associated with the following
    products, unless the user manually generated the content earlier in
    the workflow: Stream stories (user_message parameter for
    Facebook.streamPublish and FB.Connect.streamPublish, and message
    parameter for stream.publish), Photos (caption), Videos (description),
    Notes (title and content), Links (comment), and Jabber/XMPP.

    These fields are intended for users to express themselves. Pre-filling
    these fields erodes the authenticity of the user voice.

    The bottom line is (unfortunately), you cannot add a caption to a photo you are uploading using Intents. The only way you can do it, is integrating the Facebook SDK in your App. To see an example of how they do it in their sample app Hackbook, refer to this link and scroll down to line 263 where they deal with uploading a Photo with a Caption.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using sharekit to share text on facebook, i want to add a
When I want to share a video url like facebook.com/video/video.php?v=ID or facebook.com/photo.php?v=ID with application
While uploading photo using Graph API, The caption of the photo should not be
I want to share(and give control of) my Ubuntu 12.04 desktop to my brother(using
I want to share my experience of using maven through a proxy. You would
I want to share my session variables in PHP using many subdomains. I have
I am developing an Android app and want to share some text by opening
I want to detect a certain shape in an photo using PHP. Take a
i am integrating facebook with my iphone application. i can share text message in
I want to share a dictionary between my processes as follows: def f(y,x): y[x]=[x*x]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.