3

After spending many hours trying to post a question using /questions/add and repeatedly getting the error message "The account associated with the access_token does not have a user on the site", I finally realized that users have to join individual sites to post to it. I was attempting to post a question to a site which I have not joined because my site selector displayed all Stack Exchange sites from /sites. Is there a way to return only the sites which the user has joined to prevent the interface from leading an unsuspecting user into a dead end as I, the programmer, was?

1 Answer 1

3

If you already have a token, then you can use the /me/associated network route to get the associated site for the authorized user. There's a similar route that takes a network account ID and does not require an active access token.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.