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 8833841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:52:45+00:00 2026-06-14T08:52:45+00:00

I need to post a Bitmap to Facebook wall along with a message and

  • 0

I need to post a Bitmap to Facebook wall along with a message and url link.

According to https://developers.facebook.com/docs/reference/api/user/#photos, there are 4 parameters to add a photo to Facebook album:

source, message, place, no_story.

However, I was recommend to use a code like this:

Bitmap bm = ...;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
bm.compress(CompressFormat.JPEG, 100, baos);
final byte[] data = baos.toByteArray();
Bundle postParams = new Bundle();

postParams.putByteArray("photo", data);
postParams.putString("message", "My message here");
postParams.putString("link", "http://www.google.com");

Request request = new Request(session, "me/photos", postParams, HttpMethod.POST, callback);
RequestAsyncTask task = new RequestAsyncTask(request);
task.execute();

… and this code works fine except it does not show the link (“http://www.google.com”) on the wall.

I have three questions:

  1. Why does postParams.putByteArray("photo", data) work? There’s no photo parameter according to documentation (see above).

  2. If it is impossible to use link parameter, how does SLComposeViewController class (http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Reference/SLComposeViewController_Class/Reference/Reference.html) work? It has - (BOOL)addURL:(NSURL *)url method.

  3. If it is possible to use link parameter, why doesn’t it work?

  • 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-14T08:52:46+00:00Added an answer on June 14, 2026 at 8:52 am

    Okay, I found answers to questions (2) and (3). It appeared to be very simple: do not use link, just append it to message:

    postParams.putByteArray("photo", data);
    postParams.putString("message", "My message here" + " " + "http://www.google.com");
    //postParams.putString("link", "http://www.google.com");
    

    As for my question (1), it is still unclear for me: why does postParams.putByteArray("photo", data); work fine instead of postParams.putByteArray("source", data);? The documentation say nothing about photo parameter.

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

Sidebar

Related Questions

I need to post to this url: https://api.platform.com/media . I am really new to
I need to post on Facebook wall using Facebook c# sdk and mvc or
I need to post message on a certain FB page as a owner by
i need to post url to be /controller/action/someID not sure how to get someID
I need to POST (HTTP method) some info to an external URL when a
I need to POST data to a url in the middle of a script.
I need to post on the wall of linkedIn from my iphone application. For
I need to post a photo (taken form the camera) in the users facebook
I need the post URL for some Share buttons. Is there a way to
I need to post a form to a 3rd party URL in C#. The

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.