We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have problems to this code:
const axios = require('axios')
/**
return myAction()
But I got Error 400 on my end. Can you help me to hinder on this one? Thanks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have problems to this code:
const axios = require('axios')
/**
*/
const myAction = async () => {
try {
var headers = {
'Content-Type': 'application/json'
}
var endpoint =
'https://graph.facebook.com/' +
event.target +
'?fields=name,first_name,last_name&access_token=' +
session.fb_access_token
var response = await axios.get(endpoint, { headers: headers })
// store to user object
user['full_name'] = response.data.name
session.full_name = response.data.name
user['first_name'] = response.data.first_name
user['last_name'] = response.data.first_name
bp.logger.debug(JSON.stringify(response.data))
} catch (err) {
bp.logger.warn(err)
}
}
return myAction()
But I got Error 400 on my end. Can you help me to hinder on this one? Thanks.
The text was updated successfully, but these errors were encountered: