Access Facebook Photos through Native iOS App

We are building a photo app that needs to allow users to link to their facebook accounts and select photos from FB inside of the app. We’re running into an issue where we cannot load the photos on a native iOS device, but this functionality works everywhere else. On iOS, the call to the FB graph API results in the following error:

Uncaught OAuthException: An active access token must be used to query information about the current user.

Right before the call to access user photos, we make a call to get the current access token, and that call succeeds. So we’re not sure why we can’t access user photos.

We’re also uncertain whether this issue is related to Apple limitations on the capacitor request protocol, as outlined in this thread. But we’re not entirely sure that this is the issue.

Anyone with experience integrating facebook photos with capacitor who has suggestions? We can provide a basic code example, if needed.

1 Like