Retrieving Facebook Profile Picture as an HTML Texture

Hi all,

Related to a set of posts regarding Facebook + Unity integration I created this really simple sample about how to use the WWW class to retrieve a Facebook User’s Profile Picture and render it as an HTML texture.

The sample was created in Unity 3 and since I only used the WWW class to get Facebook’s public information I din’t need to include the Facebook SDK dll or do the authentication work.

This sample is just a showcase on how to retrieve Facebook public information and render it inside Unity3D, and is by no means an attempt to show a real and advanced bidirectional integration. However I hope this helps some people to get started, understand how to request the user for input (Facebook username) and use that input to retrieve public information using the WWW in a really simple and clear way.

I have only used a single C# script, which is small, very clear and well documented.

The sample has been attached, but you can get it directly here.

Cheers!
-aB

415587–14390–$FacebookConnect.zip (1.35 MB)

thank you )

No problem. This is just a small sample, the idea is to keep growing it and make it a more generic solution that we can use out of the box, so if you have any comments, edits, updates or whishes, please share them !!!

Very nice! thank you
i’ll give it a try