UNPKG

703 BJavaScriptView Raw
1import { UnavailabilityError } from 'expo-errors';
2import ExponentFacebook from './ExponentFacebook';
3export 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//# sourceMappingURL=Facebook.js.map
\No newline at end of file