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
15
Crash in Node.js when trying to get the profile picture.
200 GET https://graph.facebook.com/v15.0/YYY/picture?access_token=XXX Response: "����\u0000\u0010JFIF... ��⌂��" CrashReporter: SDK crash detected! Unhandled rejection TypeError: Cannot read properties of undefined (reading 'map')
import fbBizSdk from 'facebook-nodejs-business-sdk'; const User = fbBizSdk.User; const fbUser = new User(userID); const pictures = await fbUser.getPicture();
Unhandled rejection TypeError: Cannot read properties of undefined (reading 'map') at Array.Cursor._this._buildObjectsFromResponse (...\node_modules\facebook-nodejs-business-sdk\dist\cjs.js:1504:28)
_this._buildObjectsFromResponse = function (response) { return response.data.map(function (item) { -> response is the picture itself: "�����JFIF����...." .... }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Which SDK version are you using?
15
What's the issue?
Crash in Node.js when trying to get the profile picture.
200 GET https://graph.facebook.com/v15.0/YYY/picture?access_token=XXX
Response: "����\u0000\u0010JFIF... ��⌂��"
CrashReporter: SDK crash detected!
Unhandled rejection TypeError: Cannot read properties of undefined (reading 'map')
Steps/Sample code to reproduce the issue
import fbBizSdk from 'facebook-nodejs-business-sdk';
const User = fbBizSdk.User;
const fbUser = new User(userID);
const pictures = await fbUser.getPicture();
Observed Results:
Unhandled rejection TypeError: Cannot read properties of undefined (reading 'map')
at Array.Cursor._this._buildObjectsFromResponse (...\node_modules\facebook-nodejs-business-sdk\dist\cjs.js:1504:28)
_this._buildObjectsFromResponse = function (response) {
return response.data.map(function (item) { -> response is the picture itself: "�����JFIF����...."
....
}
Expected Results:
To receive user's picture.
The text was updated successfully, but these errors were encountered: