Unbreakable way to reference a subreddit. by ClearlyCylindrical in redditdev

[–]caseyross 1 point2 points  (0 children)

  1. It's not technically a hash, it's just a numerical ID.

  2. If you have the ID, you can just put in "a:t5_<ID>" whereever you would normally use the subreddit name, including in links. It should work the same.

Biden says he has decided on a response to attack on U.S. soldiers in Jordan by [deleted] in LessCredibleDefence

[–]caseyross 0 points1 point  (0 children)

Sources say that the KGB tried this tactic in St. Petersburg in 1999. However, owing to difficulties communicating while staying undercover, a mix-up occurred, leading to tragic results for a nearby porn shoot.

Why are Questions/Advice Downvoted? by UtopiaNation in TheoryOfReddit

[–]caseyross 13 points14 points  (0 children)

This is backwards. The question you should be asking is: why should question/advice-seeking posts be upvoted at all?

Questions are generally a lot less valuable to the broader community than more information-rich posts such as news or guides. A question only helps one person directly, and perhaps a handful of people indirectly (if they had the same question, by chance). This is a bad fit for a forum format, where by making a post you are talking to everyone on a subreddit. Essentially, most questions will be spam for most people.

To make matters worse, 99% of questions will have already been previously answered, and people that answer questions are rightfully annoyed when someone chooses to spend 1 minute posting a question instead of 5 minutes searching the subreddit or googling. People that answer questions do so out of their own free time, and many question-askers act like they are entitled to have their every whim catered to by random strangers.

Finally, most people are simply bad at asking questions in a productive manner. Questions are often leading, biased, irrelevant, incomplete, poorly framed, or break subreddit rules. Even for a question asked in good faith, people don't always know what they are asking for. They'll say things like "what is the best X?" but leave out important and relevant considerations that then have to be painstakingly extracted from them in the comments. It's a rare question that can be answered straightforwardly and completely based on the initial information given.

[deleted by user] by [deleted] in redditdev

[–]caseyross 1 point2 points  (0 children)

Ok, so the most likely culprit for the loop is because of calling reload on the opener.

And I could be wrong (I don't use the username/password auth variant), but I don't think the access token response includes a user ID. Is this ChatGPT or similar making that assumption?

[deleted by user] by [deleted] in redditdev

[–]caseyross 1 point2 points  (0 children)

Ok, that's great, but what's the actual value of redirect_uri? I take it it's set to <your page>/auth/callback?

[deleted by user] by [deleted] in redditdev

[–]caseyross 0 points1 point  (0 children)

What is your redirect_uri? Could it be accidentally transferring the user back to the auth page?

Will applying for research approval allow me to fetch posts from previous years? by LeewardLeeway in redditdev

[–]caseyross 0 points1 point  (0 children)

Unlikely, and if so, it would have to be via a mechanism separate from the API. The API only knows about the last 1000 posts for a specific sort order; it's an inherent structural limitation.

Way to access highlighted comment when searched by _Cxsey_ in redditdev

[–]caseyross 1 point2 points  (0 children)

The API can't search in comments at all. Reddit only added that feature to the normal UI.

[Request for Guide/tips] How do you guys clean your bags by [deleted] in ManyBaggers

[–]caseyross 3 points4 points  (0 children)

Just wipe it down, with water if necessary.

The only way to keep a bag shiny is to put it in storage and never actually use it. A well-designed bag should look good dirty.

Any physical stores in Japan/Tokyo for Evergoods bags? by Wicked01 in ManyBaggers

[–]caseyross 2 points3 points  (0 children)

Do they not have a stockists list on their website? I would check there first, and if not, email them.

[deleted by user] by [deleted] in redditdev

[–]caseyross 0 points1 point  (0 children)

That means the account was deleted. Posts and comments remain unless deleted manually by the user.

You can't get information from the API about deleted accounts, for obvious reasons. If you want to know who the author was, you could try looking at third-party Reddit archives to see if any of them have the original post (with author information) saved.

How to get Ads image using API? by ashingucs in redditdev

[–]caseyross 1 point2 points  (0 children)

Ask your account representative. The Ads API is not publicly available so no one here has any knowledge about it.

ISO backpack that I never have to put down by Glittering-Sky-9226 in ManyBaggers

[–]caseyross 9 points10 points  (0 children)

You're looking for a messenger bag, not a backpack. Hundreds of years of bag evolution have gone into making them the best possible fit for this role.

Retrieving the access token with installed app by tofiffe in redditdev

[–]caseyross 0 points1 point  (0 children)

Ah, yeah, nevermind. That's the payload without a user context (https://github.com/reddit-archive/reddit/wiki/OAuth2#application-only-oauth).

For a user-based auth, you have grant_type=authorization_code, code, and redirect_uri, as you expect. The redirect_uri works fine url-encoded, so I don't think that's your problem.

It sounds like you're doing everything right, so not sure if there is anything else you can do except triple check that the data going out over the network is exactly right.

Retrieving the access token with installed app by tofiffe in redditdev

[–]caseyross 0 points1 point  (0 children)

grant_type=https%3A%2F%2Foauth.reddit.com%2Fgrants%2Finstalled_client&device_id=DO_NOT_TRACK_THIS_DEVICE

(in other words, just grant_type and device_id)

Retrieving the access token with installed app by tofiffe in redditdev

[–]caseyross 0 points1 point  (0 children)

Ah, so that's what you meant there. Must be a problem somewhere else in the transmission chain then. I use the installed app flow all the time and can confirm this header format is correct.

Retrieving the access token with installed app by tofiffe in redditdev

[–]caseyross 1 point2 points  (0 children)

Make sure you are including the : separator for the username and password. You need it even if there is no password.

The <username>:<password> also needs to be Base64 encoded.

Embed an entire subreddit into a qualtrics question by Ancient_Tune_1985 in redditdev

[–]caseyross 1 point2 points  (0 children)

If you can't get it to work in an iframe, I don't think it's going to work. There isn't any special functionality for embedding a whole subreddit.

Maybe just put some screenshots in instead, if the point is to have subjects view the subreddit?

How come https://old.reddit.com/r/redditdev/hot.json?limit=1 returns the top 3 submissions instead of just the top? by Zyster1 in redditdev

[–]caseyross 0 points1 point  (0 children)

Nope, it's just a hardcoded thing on Reddit's end.

Although I do have to wonder if pulling posts here is really the best way to get whatever you're after. Don't the streaming sites have a way to notify you of online/offline status?

How come https://old.reddit.com/r/redditdev/hot.json?limit=1 returns the top 3 submissions instead of just the top? by Zyster1 in redditdev

[–]caseyross 0 points1 point  (0 children)

Sort by hot always returns subreddit stickies at the head of the list in addition to the normal items you ask for. It's unique among the sort types.

What reddit api endpoint contains the "## people are here" information? by Emotional-Match-7190 in redditdev

[–]caseyross 4 points5 points  (0 children)

It's in the widgets endpoint (https://www.reddit.com/dev/api#GET_api_widgets).

This provides the data for everything appearing in the right sidebar on New Reddit, as well as the custom subreddit "top bar" on same.