Posting photos to Facebook via the graphics API: OAuthException: (# 100) param tags must be an array

I am trying to upload a photo to Facebook via the Graph API on a test account for my application. With only options, url, link, nameloading works fine, returning a valid photo id.

However, if I use an additional parameter tags, I get the following error:

{
  "error": {
    "message": "(#100) param tags must be an array.", 
    "type": "OAuthException", 
    "code": 100
  }
}

I tried to provide a value for in tagsalmost every possible way, since I know that the Graph API is not simple (even the parameter urlthat is used to load a photo from a URL is not specified in the photoGraph API method );

One user ID

tags=100003919104407

CS

tags=100003919104407,100003919104408,100003919104409

tags=[100003919104407, 100003919104404,100003919104405]

tags=["100003919104407", "100003919104404","100003919104405"]

, , API Facebook

tags=[{"id":"100003919104407"},{"id":"100003919104404"},{"id":"100003919104405"}]

- / , , , .

+5
3

[{"to":"100003919104407","x":0,"y":0},  
{"to":"100003919104408","x":10,"y":10},  
{"to":"100003919104409","x":20,"y":20}] 

[{"tag_uid":"100003919104407","x":0,"y":0},
{"tag_uid":"100003919104408","x":10,"y":10},
{"tag_uid":"100003919104409","x":20,"y":20}]
+5

? tags?

, HTTP POST , PHOTO_ID/.

. , . , , , . , .

, : URL PHOTO_ID/tags/USER_ID URL Photo_id/? = USER_ID. , , PHOTO_ID/tags? = [{ "Id": "1234" }, { "id": "12345" }]. API.

.

+1

the value of X and Y of the array should be%, not pixels

Example 1 (wrong)

img: (640,480) xy: (320,240) [{tag_uid: user_id, x: 320, y: 240}] <- incorrect, because 320> 100%

Example 2 (right) img: (640,480) xy: (320,240) px: (320,240)%

[{tag_uid: user_id, x: 50, y: 50}] <- right, because 50 <100%

+1
source

All Articles