- Home /
Question by
Red Titan Studios · Jun 05, 2014 at 02:26 AM ·
facebookopenfeint
Openkit feed (sharing on facebook)
Hi I was having some issues with sharing on facebook using Openkit's login. I've messaged Openkit support several times but they havent responded. So people of Unity Community, lend me your energy!
This is what i've tested
if(OKManager.IsCurrentUserAuthenticated())
{
OKLog.Info("Found OpenKit user");
FB.Feed(
linkCaption: "I suck",
picture: "http://www.friendsmash.com/imag/logo_large.jpg",
linkName: "GameTest",
link: "http://apps.facebook.com/" + FB.AppId + "/?challenge_brag=" +
(FB.IsLoggedIn ? FB.UserId : "guest")
);
}
else
{
ShowLoginUI();
OKLog.Info("Did not find OpenKit user");
}
i've also tried
if(FB.IsLoggedIn)
and
if(OKUser.GetCurrentUser() != null)
But I have failed.. :(
Comment
its supposed to post to facebook if the user is logged in and show the login UI if the user is not logged in. This code is inside a button click method.