i know about the dashboard but couldnt find them anywhere
You need to create an app first, go here - https://www.reddit.com/prefs/apps
Referencing old thread - https://www.reddit.com/r/redditdev/comments/251v3z/how_to_get_an_api_key/
You can find the dashboard by clicking on the "hamburger" icon in the top left-hand corner of the screen.
You can now use Sync for Reddit after July 1 using the Spoof client patch with ReVanced!
Follow the instructions in this post.
Troubleshooting:
If your patched app crashes, your APK file may be broken. Check if it does not crash when you don't patch it. If your APK file turns out to be broken, you need to source a working APK from somewhere else.
Videos
With sufficient time, I like to think they could refactor and find a way to stay in the free range for most users and offer a paid upgrade to those exceeding it or else put them in request cooldown periodically.
Does anyone know if the apps typically do server side caching on hot threads so they can serve slightly stale but probably accurate results? Can you employ background service workers in the app so that data fetching can be distributed among all users, whether active or not? Like, could I, the user, give the app permissions to be promiscuous in its api calls on my behalf so that it could cache data that's beneficial to all of the app's users whether I would use the response data or not?
Again, the problem is certainly one of sufficient notice and general fuckery on the part of reddit admins, but in strictly an engineering sense, this appears to be a challenge, not a showstopper. I don't blame any devs who have had enough of the nonsense and pull the plug, but I would hate for some of the smaller app developers who are not facing multimillion dollar fees to throw in the towel if there are ways to make things work. Maybe the bigger apps like Apollo and RiF could open source their projects for the benefit of those willing to try to keep the baby and throw out the bathwater.
I'm reading https://socialiteproviders.com/Reddit/ and I want to implement Reddit OAuth login on my site. Does Reddit allow that? Where do I start`?
Tryna use revamped to patch.Everything seems easy up to the point about this 0Auth client ID. went to the site the page says and its just the reddit.com/prefs/apps but i dont really see anything i can do.
Is it just a code i have to paste into the box?
Hey guys!
I've been trying to get a client ID and Secret for a project with PRAW, but the provided link (https://www.reddit.com/prefs/apps) doesn't work. Someone experiencing this? Is this link up-to-date or broken?
I can only access a page that says: "Welcome back! You are already logged in and will be redirected back to Reddit shortly. If you are not redirected automatically, follow this link."
Clicking on "this link" does nothing.
Any help appreciated. Thank you :D
As of right now, you cannot retrieve a permanent access token. You have 2 options that come close.
The first is to request a "refresh" token when using the standard OAuth flow. That's what you're doing by sending "duration" as "permanent" in your code. The refresh token can be used to automatically retrieve new 1 hour access tokens without user intervention; the only manual steps are on the initial retrieval of the refresh token.
The second alternative, which applies only when writing a script for personal use, is to use the password grant type. The steps are described in more detail on reddit's "OAuth Quick Start" wiki page, but I'll summarize here:
- Create an OAuth client (under https://www.reddit.com/prefs/apps) with type = "script"
- Make a request to
https://www.reddit.com/api/v1/access_tokenwith POST parametersgrant_type=password&username=<USERNAME>&password=<PASSWORD>. Send your client ID and secret as HTTP basic authentication.<USERNAME>must be registered as a developer of the OAuth 2 client ID you send.
A client_id and client_secret can be generated for a reddit account by going to https://www.reddit.com/prefs/apps and creating an app:
The part I have hidden is my client_id.
Then you can use a client like praw to access reddit e.g. with Python:
import praw
r = praw.Reddit(client_id='insert id here',
client_secret='insert secret here',
user_agent='insert user agent')
page = r.subreddit('aww')
top_posts = page.hot(limit=None)
for post in top_posts:
print(post.title, post.ups)
You could use your current browser's user agent, which can be easily found by google searching "what is my user agent" (among other ways).
Here's a step-by-step guide to patching third-party Reddit apps with ReVanced to get around Reddit's API changes: Prerequisites:
ReVanced Manager: Download and install the latest version of ReVanced Manager from their official website or a trusted source.
APK of your Reddit app: Download the APK file of the Reddit app you want to patch from a reliable source like APKMirror. It's generally recommended to use a version that's one or two releases behind the latest one, as very recent versions might not be compatible with ReVanced yet.
Steps:
Create a Reddit App:
Go to this website: https://www.reddit.com/prefs/apps/
Log in to your Reddit account.
Click on "are you a developer? create an app..."
Give your app a name (it can be anything).
Select "installed app" as the type.
Crucial Step: In the "redirect uri" field, enter the correct redirect URL for your chosen Reddit app. I provided a list in my previous response. Make sure it's accurate!
Click "create app."
Copy the "client ID" that's generated—you'll need it later.
Patch the App with ReVanced Manager:
Open ReVanced Manager.
Tap "Patcher," then "Select an application."
Tap the storage icon and select the APK file you downloaded.
Tap "Next" and wait for the app to be processed.
On the "Select Patches" screen, choose "Default."
Tap "Next" and select "Spoof client."
Crucial Step: In the "Client ID" field, paste the client ID you copied earlier.
Tap "Patch" and wait for the process to complete.
Install the Patched APK:
Once patching is finished, install the patched APK. You might need to allow installation from unknown sources in your Android settings.
If you have the original version of the app installed, uninstall it first.
Log in and Enjoy:
Open the patched Reddit app and log in. You should be able to use it without any issues!
Important Notes:
Redirect URI is Key: The redirect URI needs to be an exact match. Double-check for typos!
App Updates: If your app updates automatically, you might need to repeat this process with the newer APK. You can usually disable automatic updates in the app's settings.
Troubleshooting: If you encounter problems, try these:
Clear the cache and data for ReVanced Manager.
Use a slightly older version of the Reddit app APK.
Check the ReVanced subreddit or Discord for
IHere's a list of common redirect URLs for popular Reddit clients, along with some important notes: Important Notes:
Case Sensitivity: These URLs are case-sensitive, so make sure you enter them exactly as shown.
"http" or "https": Reddit now requires redirect URLs to start with http:// or https://. Some older guides may list different formats, but those are likely outdated.
App-Specific Instructions: Always check for any specific instructions or updated URLs provided by your chosen Reddit client. Redirect URLs:
BaconReader: http://baconreader.com/auth
Boost for Reddit: http://rubenmayayo.com
Infinity for Reddit: https://infinity-for-reddit.com/
Joey for Reddit: https://127.0.0.1:65023/authorize_callback
Relay for Reddit: dbrady://relay
Reddit is Fun: redditisfun://auth
Slide for Reddit: http://www.ccrama.me
Sync for Reddit: http://redditsync/auth
Troubleshooting:
Invalid Redirect URI Error: If you encounter this error, double-check the URL for typos and case sensitivity. Also, make sure you're using the most up-to-date URL from your app's documentation.
ReVanced Issues: If you're using ReVanced, ensure you have the latest version and follow their specific instructions for patching your Reddit app and setting up the client ID.
Pls can someone one explain me. Thank you
⚠️ This guide may only work for Infinity for Reddit+. For Boost, use u/wchill*'s guide:* https://www.reddit.com/r/BoostForReddit/comments/1pjl5en/comment/nte9t5e/
Part 1:
Install the original, non-modified version of Infinity. Using Infinity for this part is required. You can pick your desired client on Part 2.
Click the hamburger (three line) icon, click "Press here to login", then click "Add an account".
Login to your account and allow the client to access your account. (If it prompts you to buy a subscription after clicking "Accept", just close the app)
You should now receive an email after allowing the client. Copy the "App ID" string from the email.
Uninstall Infinity.
Part 2: Patch configurations
Open the ReVanced app.
Tap "Patcher", then "Select an application".
Tap the "Storage" button and select your desired client's (doesn't have to be Infinity) APK file.
Tap "Selected patches" and make sure the two patches are checked.
Click the settings button beside the "Spoof client" patch.
Replace "null" with your "App ID" key. The App ID in the email is *universal*, meaning you can use it for any client, not just Infinity. (yes, "App ID" = "Client ID)
Click "Save", then click "Done".
Part 3: Patch, Install, and Login
Click "Patch".
Wait for it to patch. (around 15-20 seconds)
When it finishes, click "Install".
Open the patched app and login. (If login throws an error, try using Proton VPN and use a European country)
Done!