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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:17:33+00:00 2026-06-04T10:17:33+00:00

Is there a bug to tag a photo on sdk? Because I read something,

  • 0

Is there a bug to tag a photo on sdk? Because I read something, some people has same problem… and its new..

anyway.. I can tag photo on android and it works .. and now I am trying to tag a photo on c# but I got some errors.. now its “Invalid photo tag subject”

here is my c# code

        PhotoTag tags = new PhotoTag { tag_uid = "?????", x = "10", y = "10", tag_text ="heyy.."};
        List<PhotoTag> tagList = new List<PhotoTag>() { tags };
        var tagparameters =  JsonConvert.SerializeObject(tagList);
        var photoDetails = new Dictionary<string, object>();

        photoDetails.Add("tags", tagparameters);
        var fbResult = client.Post("/" + photoID+  "/tags", photoDetails);

//*************************************************************

public class PhotoTag
{
    public string tag_uid  { get; set; }
    public string tag_text { get; set; }
    public string x { get; set; }
    public string y { get; set; }
}

I read here https://developers.facebook.com/docs/reference/api/photo/

I used ‘to’ and ‘id’ instead of ‘tag_uid’ but I got another errors.. (It was like its not a valid parameter)

and here is output of parameters

[0] = {[tags, [{"tag_uid":"641194276","tag_text":"heyy..","x":"10","y":"10"}]]}

and here is my android code which works..

post a photo to friend's wall on facebook with android

well.. I have two questions

1- Where is my mistake in my C# code?

2- How can I tag more than one friends ??

on sdk page, there is PHOTO_ID/tags?tags=[{“id”:”1234″}, {“id”:”12345″}]
but as I explained, it doesnt work …

thank you

  • 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-04T10:17:38+00:00Added an answer on June 4, 2026 at 10:17 am

    Here my code there is working:

    private const string ExtendedPermissions = "user_about_me,user_photos,publish_stream";
    
    [HttpPost]
    [FacebookAuthorize(Permissions = ExtendedPermissions, LoginUrl = "/Home/LogOn?ReturnUrl=~/Home")]
    public ActionResult MensagemPost(string message)
    {
        var fb = new FacebookWebClient();
        dynamic me = fb.Get("me");
    
        string friendId_1 = // get the first one friend id
        string friendId_2 = // get the second one friend id
    
        var tags = new[] 
        { 
            new { tag_uid = friendId_1, x = 20, y = 20 },
            new { tag_uid = friendId_2, x = 40, y = 40 },
            new { tag_uid = (string)me.id, x = 60, y = 60 }
        };
    
        dynamic parameters = new ExpandoObject();
        parameters.message = message;
        parameters.tags = tags;
        parameters.url = "http://1.bp.blogspot.com/-evheT51sfeM/TlO_wZ8YDqI/AAAAAAAAA8I/fjlg0G8AgMY/s1600/The-best-top-hd-desktop-naruto-shippuden-wallpaper-naruto-shippuden-wallpapers-hd-11.jpg";
    
        dynamic result = fb.Post("me/photos", parameters);
    
        return RedirectToAction("Index", new { success = true });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While using fixed width select tag , there is one bug in IE. When
It seems to be well-known there is a bug when using JMenuItem.getRootPane(). I read
I have developed an AJAX based game where there is a bug caused (very
Ok guys, could you tell me is there a certain bug in current code:
I'm using Zend_File_Transfer_Adapter_Http to upload file to my server. There is a bug when
There seems to be a bug in a Wordpress PHP function that leaves whitespace
There is an annoying bug in Firefox which allows me to set the caret
There is a strange bug in ListView/GridView in WPF when the SelectionMode is set
There seems to be a bug in the Java varargs implementation. Java can't distinguish
Is there any workaround for the following 1 pixel to the left bug? <!DOCTYPE

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.