1 | import { UnavailabilityError } from '@unimodules/core';
|
2 | import ExponentFacebook from './ExponentFacebook';
|
3 | export async function logInWithReadPermissionsAsync(appId, options) {
|
4 | if (!ExponentFacebook.logInWithReadPermissionsAsync) {
|
5 | throw new UnavailabilityError('Facebook', 'logInWithReadPermissionsAsync');
|
6 | }
|
7 | if (typeof appId !== 'string') {
|
8 | console.warn(`logInWithReadPermissionsAsync: parameter 'appId' must be a string, was '${typeof appId}''.`);
|
9 | appId = String(appId);
|
10 | }
|
11 | if (!options || typeof options !== 'object') {
|
12 | options = {};
|
13 | }
|
14 | return ExponentFacebook.logInWithReadPermissionsAsync(appId, options);
|
15 | }
|
16 |
|
\ | No newline at end of file |