using System.Threading.Tasks;
using Plugin.SocialAuth.Facebook.Native;

namespace Plugin.SocialAuth
{
	public static class FacebookSocialAuthManagerExtensions
	{
		public static Task<IFacebookAccount> AuthenticateFacebookAsync(this SocialAuthManager manager, IFacebookAuthOptions options, string accountId = null)
		{
			return manager.AuthenticateAsync<IFacebookAccount, IFacebookAuthOptions>(ProviderType.Facebook, options, accountId);
		}

		public static Task LogoutFacebookAsync(this SocialAuthManager manager, IFacebookAccount account)
		{
			return manager.LogoutAsync<IFacebookAccount, IFacebookAuthOptions>(ProviderType.Facebook, account);
		}
	}
}
