Publishing photo to Facebook via Graph API: OAuthException: (#100) param tags must be an array -


i'm attempting upload photo facebook via graph api on test user account app. url, link, name parameters present, upload works fine returning valid photo id.

however, if use additional tags parameter, end following error returned:

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

i've tried provide value tags in every possible way can think of, know graph api isn't straightforward (even parameter url used upload photo url isn't listed under photo graph api method);

a single user id

tags=100003919104407

multiple cs'd user ids

tags=100003919104407,100003919104408,100003919104409

array ids not integers

tags=[100003919104407, 100003919104404,100003919104405]

array ids strings

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

array containing objects, per facebook graph api documentation

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

if tell me right format/another parameter through pass user ids in order have them tagged in photo, i'd grateful.

try this

it should in format

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

or

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

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -