If you want to request the Facebook API to search for locations, you do not need a user access token, you can use your application token, which you will find here: https://developers.facebook.com/apps/{app_id}/settings/advanced under the client token
Assuming you have set up the Facebook SDK correctly, all you have to do is add your application token to your info.plist with the FacebookClientToken key. You should now be able to make graphics location API requests without user authorization!
Here is what your info.plist should look like:
<key>FacebookAppID</key> <string>{{APP_ID}}</string> <key>FacebookClientToken</key> <string>{{CLIENT_TOKEN}}</string> <key>FacebookDisplayName</key> <string>{{APP_NAME}}</string> <key>LSApplicationQueriesSchemes</key> <array> <string>fbapi</string> <string>fb-messenger-api</string> <string>fbauth2</string> <string>fbshareextension</string> </array>
Obviously, change anything between {{}} to the appropriate value.
Arel
source share