- Home /
Webgl facebook integration
Good Day,
I have problem with login to facebook from my webgl app ( on localhost ). There is no problem when i run my app in editor or in android device.
Can i login to FB from webgl ( not facebook canvas - simple www ) using only Unity? Or i have to use php or something else? - it would be a nightmare =/
I need this for sharing photo from app.
I have resposne from my wwwconsole something like: "Application error,There has been an error with downloading/retrieving data for the application. Application may not be correct or there could have been a temporary technical problems. Please try again later."
EDIT. I found solution... in google:
Application.OpenURL (FACEBOOK_URL + "?app_id=" + FACEBOOK_APP_ID +
"&link=" + WWW.EscapeURL(linkParameter) +
"&name=" + WWW.EscapeURL(nameParameter) +
"&caption=" + WWW.EscapeURL(captionParameter) +
"&description=" + WWW.EscapeURL(descriptionParameter) +
"&picture=" + WWW.EscapeURL(pictureParameter) +
"&redirect_uri=" + WWW.EscapeURL(redirectParameter));
But now i have another problem :) How can i upload picture not from web... I am making screenshot from my app and i want to send it - dont know how? I was trying to upload photo from localhost or hdd but no success.