D
D
d1m41k2017-05-11 00:08:41
Android
d1m41k, 2017-05-11 00:08:41

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

1 answer(s)
D
d1m41k, 2017-05-11
@d1m41k

PS
* @param args widget arguments as specified in documentation
- that really helped .....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question