Peasant (peasant_) wrote in lj_clients,

Allowmask problem

I am using XML-RPC postevent and want to post to either all friends or a specific custom friends group.

Having read the postevent docs

[scalar](required) Specifies who can read this post. Valid values are public (default), private and usemask. When value is usemask, viewability is controlled by the allowmask.

[scalar](required) Relevant when security is usemask. A 32-bit unsigned integer representing which of the user's groups of friends are allowed to view this post. Turn bit 0 on to allow any defined friend to read it. Otherwise, turn bit 1-30 on for every friend group that should be allowed to read it. Bit 31 is reserved.

I assumed I just had to send 0 for all friends and 1 for the first friend group, 2 for the second friend group and so on. But I am clearly misunderstanding the allowmask.

If I send


LJ shows the post with the security set to 'custom' but no specified groups (so in fact no-one but me can see it).

While if I send


LJ shows the post with security set to friends only, not just group 1.

Can anyone explain what I should be doing?

  • 302: lj_dev

    In the interests of consolidating all LiveJournal development-related discussion, we're going to be closing down this community. The same…

  • Plain text to LJ

    I have an old blog from xanga that's in html/plain text and I want to move it over here. Which client would be the best to do this? I also want to…

  • ljKlient 0.2.0 Preview Release 1

    Today marks another milestone in the development of ljKlient — as the first preview of the 0.2 series is released.  Please go to the project…

  • Post a new comment


    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened