Hi @TheYakuzo,
Welcome to the Community!
I just tried out the Imgur social connection, and I got the same error. I am going to reach out to the team responsible for social connections. It might be related to configuration settings.
I was able to create a custom connection for Imgur:
- Go to social connections and click “+ CREATE CONNECTION”
- Click “Create Custom” at bottom of list of social connections
- Authorization URL: https://api.imgur.com/oauth2/authorize
- Token URL: https://api.imgur.com/oauth2/token
- Scope: leave blank
- Client ID: YOUR_IMGUR_APPLICATION_CLIENT_ID
- Client Secret: YOUR_IMGUR_APPLICATION_CLIENT_SECRET
- Fetch User Profile Script:
function fetchUserProfile(accessToken, context, callback) {
request.get(
{
url: 'https://api.imgur.com/3/account/me',
headers: {
'Authorization': 'Bearer ' + accessToken,
}
},
(err, resp, body) => {
if (err) {
return callback(err);
}
if (resp.statusCode !== 200) {
return callback(new Error(body));
}
let bodyParsed;
try {
bodyParsed = JSON.parse(body);
} catch (jsonError) {
return callback(new Error(body));
}
const profile = {
user_id: `${bodyParsed.data.id}`
};
callback(null, profile);
}
);
}