SPFacebook.OnUserDataRequestCompleteAction -= UserDataLoaded;
if (result.IsSucceeded)
{
Debug.Log("User Data Loaded!");
IsUserInfoLoaded = true;
SPFacebook.Instance.userInfo.LoadProfileImage(FB_ProfileImageSize.normal);
string FBNametxt = SPFacebook.Instance.userInfo.Name;
UILabel Name = GameObject.Find("FBName").GetComponent<UILabel>();
Name.text = FBNametxt;
//Texture2D FBLoadPicture = SPFacebook.Instance.userInfo.GetProfileImage(FB_ProfileImageSize.large);
UITexture FBLoadTex = FBGetProfile.GetComponent<UITexture>();
FBLoadTex.mainTexture = SPFacebook.Instance.userInfo.GetProfileImage(FB_ProfileImageSize.normal);
// FBLoadTex.MakePixelPerfect();
}
else {
Debug.Log("User data load failed, something was wrong");
}