I am creating profiles for my users based on their Facebook profile. I wish to fetch profile pictures from Facebook when creating the profile content, and include the picture with the content.
Currently, I manage to get a user logged in (to Facebook), giving me an access token. I then fech the profile picture in the back-end and save it to a temporary location, ready for uploading into the content repository. I’m just not seeing how I can get the image data into the “data”-structure in the JSON…
We do not support creating images in Javascript yet. It’s on the plan, but cannot tell you when that is. The only thing you can do now is to integrate this using Java. You can bridge Javascript and Java anytime and there you will have a full Java API that supports everything. Does not have any examples on that in hand, but you can look at our libs to see how all of this works.
Now, my only problem is that the image isn’t visible in the content manager, due to the image being uploaded directly into the master branch, without a corresponding item in the draft branch. This has been promised to be handled in a future release.