0
votes

I have a registered Facebook application that uses FB Graph API in version 1. It has permissions for the following things:

  • email
  • public_profile
  • user_friends

I use it's API key in my iOS application to allow users log in.

I read user token as [[session accessTokenData] accessToken]];

However when I use this token in FB graph explorer I cannot get a list of friends.

The only message I receive are friends that uses this app too so the same when I use api v2.0.

How to get token that allows me to use FB Graph API in version 1?

1
If you created your app after 4/30/2014 you can not use API v1.0 - WizKid
@WizKid "I have a registered Facebook application that uses FB Graph API in version 1." - Kamil Lelonek
I wanted to check because there if you created the app after 4/30/2014 and call graph.facebook.com/v1.0/something it will still be v2.0 - WizKid
I know, that's not the issue. - Kamil Lelonek
OK. Then it must be that you logged in using api v2.0 the first time. Because then it doesn't matter if you are using api v1.0 to get friends - WizKid

1 Answers

1
votes

We solved that by enabling v1 API compatibility by:

[FBSettings enablePlatformCompatibility: YES];

Docs: https://developers.facebook.com/docs/reference/ios/current/class/FBSettings/