- Home /
Question about screenshots and facebook integration
I havent done any research in this topic but would just like to know if its all doable or not. Lets say I have a unity app (webplayer and for mobile). Then I want the user to be able to save the current view as a picture (print screen). Then a button would a appear saying something like "share image on facebook". And when clicked, the picture gets saved to the users facebook albums and appear one the users latest news feed.
I havent used the facebook API or unitys www class so I guess it will be kinda tricky.
also posted the question here: http://forum.unity3d.com/threads/95891-Question-about-facebook-intergation
Answer by Chris D · Jul 08, 2011 at 08:17 PM
Start researching ; )
In the mean time, it looks like screenshots are possible from Unity:
You'll then have to use WWW to get it out of the program. For Facebook-specific stuff, you should refer to their documentation.
Please do a search before posting next time, it took all of 2 minutes to find this stuff.
It is much simpler to use PNG from Unity. This doesn't require any third-party libraries.
Read more about it here:
http://unity3d.com/support/documentation/ScriptReference/Texture2D.EncodeToPNG.html
(But jpeg is sometimes smaller)
Your answer
Follow this Question
Related Questions
Accessing the bytes[] from Application.CaptureScreenshot 1 Answer
EncodeToPng and WebCamTexture PROBLEM 4 Answers
Post image to facebook wall 0 Answers
Unity Facebook SDK publish_actions 1 Answer
Share image with hastag 2 Answers