Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to pass title, body and subreddit into the reddit share? #68

Closed
deronsizemore opened this issue Nov 20, 2014 · 6 comments
Closed

Comments

@deronsizemore
Copy link

I'd like to be able to pass that info into the submit page when someone shares on reddit.

Thanks

@andrewicarlson
Copy link
Contributor

As far as I can tell you can't pass the subreddit through a Reddit share because Reddit validates the subreddit before the submission process. I'll write something for passing the title and text later today.

@dbox
Copy link
Contributor

dbox commented Apr 14, 2015

Thats up

@dbox dbox closed this as completed Apr 14, 2015
@deronsizemore
Copy link
Author

Thank you!

@deronsizemore
Copy link
Author

Thanks again for this. I'm finally getting around to messing with this. I noticed that I mistyped my question initially. When sharing a link on Reddit, it doesn't really make sense to share a "body" as at that point, you're no longer sharing a link and it becomes a self post. Is there a way to pass in a URL in the reddit share button? Also, regarding passing the subreddit, I noticed on their api page: http://www.reddit.com/dev/api#POST_api_submit they have a way to pass the subreddit. I was wondering if this would allow you to add this functionality?

Thanks

@dbox dbox reopened this Jun 10, 2015
@AdamPS
Copy link
Contributor

AdamPS commented Jul 26, 2015

So if we can't have both text and url (and we should test this I guess), it looks like there is an action to remove the text parameter from both V1 and V2. Also, in that latest API, the URL is slightly different ("/api/submit") and it suggests there should be a kind parameter. I don't have an account to test.

Regarding subreddit - it would be easy to pass it, but how to decide what value to pass? In index.html is could only be an example.

@deronsizemore
Copy link
Author

Sorry for my delayed response here.

it suggests there should be a kind parameter. I don't have an account to test.

What is a "kind parameter?" Also, I have an account and can test things if you needed me to?

Regarding subreddit - it would be easy to pass it, but how to decide what value to pass?

I assume it would just be hard coded? For me, I'd need to only every submit to a single subreddit which will never change.

@dbox dbox closed this as completed Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants