submit_comment with avatar url for user
-
I’d like to be able to login with a WordPress account then submit comments. Unfortunately the OAuth 2 API only lets you access the WordPress JSON api’s when authenticated for you own blog, you can’t authenticate this way then post comments to someone else blog.
To get around this I have used the OAuth 2 interface to authenticate with WordPress so I can get the display name, email, profile_URL and Avatar URL’s using the /me endpoint. So now I have all the users details, I’d like to use them to post a comment via JSON.
The submit_comment interface only takes name and email though, so I can’t submit a comment using all the user information so the comment appears with the users avatar.
Accessing wordpress directly you fill in the email and it auto fills the display name and avatar, which then posts with the comment, and it’s something like this I’d like to achieve in a mobile app.
The site doesn’t have any locally registered users, except for authors, but does like to allow people posting comments to login with their wordpress.com account if they have one.
Any ideas?
- The topic ‘submit_comment with avatar url for user’ is closed to new replies.