Forum Discussion
DataSource.Error when I try to get Facebook profile picture
click edit query, and go to first step which will be source, i guess you see something like record, if yes, click on record, it will show you values from json, and then choose "into table" on convert tab.
it will give you name and value columns, select name column and go to transform tab, click "pivot column", and in value columns choose you will have "Value" and click advanced option, chooise "Don't aggregate"
At end of this , you expect column headers from json with data in rows.
The error is in the source, I can't pass from there.
For some reason it expect a "Table" but gets a "Record".
Could it be a bug in the Facebook connector?
I have no problem with queries that return me JSON like:
{
"name": "Facebook page name",
"id": "1234456789"
}- parry2k8 years ago
Super User
try this, go to advance editor and wrap everything in json.document function
Json.Document(Facebook.Graph.....)
and see if it works.
- parry2k8 years ago
Super User
facebook graph is part of selection list when you connect to facebook as datasource?
- jocms8 years agoNew Member
I try the Json.Document wrap but it did not work. :smileysad:
Facebook Graph is not part of the selection list.
I follow this tutorial but I edit the Source (guiding me from the Graph API Reference) to obtain the data I need. So far almost everything has worked except for this profile image API that returns a different JSON structure.
- parry2k8 years ago
Super User
Gotcha, in that case you need to use Get Data and Web as your data source and I assume that will do it.