Answer the question
In order to leave comments, you need to log in
Odnoklassniki sdk android widget media how to tag a friend?
Hello!
I'm trying to find a way to make a post and still tag a friend
. This can be done using odnoklassniki.request("mediatopic.post", args, "post"); and in the parameters specify withFriends in json. However, it requires permissions for publishing, which do not issue and say to use the widget.
How do I use the widget and tag a friend in my post??? or at least to have my entry appear in his feed.
here is the code that posts a message but without tagging a friend((
String js = "{\"withFriends\": [575469879691]," +
"\"media\": [{\"type\": \"text\",\ "text\": \"test api\"}]," +
"\" with_friends\": [\"575469879691\"]}";
// HashMap args = new HashMap<>();
// args.put("format", "json");
// args put("type", "USER");
// args put("attachment", js);
odnoklassniki.performPosting(activity,
js,
false, null);
PS. the performPosting method uses arguments, that's just what it takes as arguments and why if there is already an attachmenet - this is a
heeeelp question
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question