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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:05:03+00:00 2026-06-01T08:05:03+00:00

I am working on a Facebook application and am currently trying to have my

  • 0

I am working on a Facebook application and am currently trying to have my app tag one of the user’s friends. I almost have it working 100%, except when it is supposed to be tagging the person, I instead get an error message that follows:

{“error”:{“message”:”Unsupported post request.”,”type”:”GraphMethodException”,”code”:100}}

The user and photo IDs are for sure correct, that is not the issue. Otherwise, I’m not sure what else could be causing this error. Code is below for reference. Thanks much!

public void setTag() {
    String relativePath = Constants.photoID + "/tags/" + Constants.userID;
    Bundle params = new Bundle();
    params.putString("x", "5");
    params.putString("y", "5");
    Constants.mAsyncRunner.request(relativePath, params, "POST", new TagPhotoRequestListener(),
            null);
}



public class TagPhotoRequestListener extends BaseRequestListener {

@Override
public void onComplete(final String response, final Object state) {
    if (response.equals("true")) 
    {
        String message = "User tagged in photo at (5, 5)" + "\n";
        message += "Api Response: " + response;
        Log.i("TagPhotoRequestListener", message);
    } 
    else 
    {
        Log.w("TagPhotoRequestListener", "User could not be tagged.");
    }
}

public void onFacebookError(FacebookError e) {
    Log.w("TagPhotoRequestListener", "Facebook Error: " + e.getMessage());
}

}

EDIT: Here is my code for posting of a picture and getting the photoID. For testing purposes it’s just a single photo from my sdcard.

public void postPhoto() {
    byte[] data = null;

    Bitmap bi = BitmapFactory.decodeFile("/mnt/sdcard/Download/KathleenSchedule.jpg");
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    bi.compress(Bitmap.CompressFormat.JPEG, 100, baos);
    data = baos.toByteArray();

    Bundle params = new Bundle();
    params.putString(Facebook.TOKEN, Constants.mFacebook.getAccessToken());
    params.putString("method", "photos.upload");
    params.putByteArray("picture", data);

    AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(Constants.mFacebook);
    mAsyncRunner.request(null, params, "POST", new PhotoUploadListener(), null);
}


public class PhotoUploadListener extends BaseRequestListener {

@Override
public void onComplete(final String response, final Object state) {
    try {
        // process the response here: (executed in background thread)
        Log.d("PhotoUploadListener", "Response: " + response.toString());
        JSONObject json = Util.parseJson(response);
        System.out.println(response);
        final String photo_id = json.getString("pid");
        Constants.photoID = photo_id;
  • 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-01T08:05:05+00:00Added an answer on June 1, 2026 at 8:05 am

    Ok, now your problem is clear.

    You are using the photos.upload method which is deprecated:

    We are in the process of deprecating the REST API, so if you are
    building a new application you shouldn’t use this function. Instead
    use the Graph API and POST to the photos connection of the User object

    Because you are using an old method, you’re getting and old response type.
    Switch to using the graph api way, and you should get the photo id in the response.

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

Sidebar

Related Questions

I have created an application in facebook,all is working fine except the publish to
i'm trying to authenticate with facebook i have a sinatra app working correctly with
I am trying to create a facebook application, all is working fine except the
I have been working on facebook application and you know on facebook native javascript
I have been working on a facebook application which will be using Graph API
I'm working on a simple facebook application where I'm storing: Facebook friends ID Table
I'm working on application and I want to connect it to facebook. The user
I'm running a facebook app on localhost using wamp. My application is working fine
We currently have an iframe-based Facebook canvas application in the works. The canvas portion
I'm currently working with the JavaScript SDK for Facebook. The application was based on

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.