i am trying to show facebook profile picture and username to the logged in user in my android game but i am facing this error:
Assets/scripts/fbLogin.cs(60,52): error CS1501: No overload for method API' takes
3’ arguments
void DealFBMenue ( bool isLoggedIn){
if (isLoggedIn) {
UIFBIsLoggedIn.SetActive (true);
UIFBIsNotLoggedIn.SetActive (false);
//get profile pic code
FB.API ("me/picture?type=med", HttpMethod.GET, DealWithProfileImg);
} else {
UIFBIsLoggedIn.SetActive (false);
UIFBIsNotLoggedIn.SetActive (true);
}
}
private void DealWithProfileImg(GraphResult result){
if(result.Error == null){
Image img = UIFBPPic.GetComponent<Image>();
img.sprite = Sprite.Create(result.Texture, new Rect (0, 0, 128, 128), new Vector2());
}
}