fetchAccountDetails method

Future<FacebookAccountDetails> fetchAccountDetails(
  1. Session session, {
  2. required String accessToken,
})

Returns the account details for the given accessToken.

This method verifies the token and fetches the user's profile information from Facebook's Graph API.

Implementation

Future<FacebookAccountDetails> fetchAccountDetails(
  final Session session, {
  required final String accessToken,
}) async {
  return utils.fetchAccountDetails(
    session,
    accessToken: accessToken,
  );
}