Posts tagged with facebook-ios-sdk

I'm trying to get some facebook user's permissions but not all of them are listed to the user to grant/decline.

Using the FBLoginButton and setting the permissions to:

- email - pages_show_list - instagram_basic - pages_read_engagement - business_management - instagram_manage_insights 

The user is presented only with public_profile (mandatory) and email, the rest are not shown to be granted/declined.

Any subsequent request doesn't show them either.

I also set button.authType = .rerequest

To note that when I created a new facebook account for testing and this worked just fine. Could it be a particular setting on some accounts to not ask these permissions. The account(s) with issues are personal accounts (mine / colleagues)

What am I missing here?

I’m working on a React Native app and want to track app installations using Facebook’s Conversion API. I’ve set up Facebook’s SDK in my app, but I’m having trouble integrating the Conversion API.

Here’s what I’ve done so far:

  • Integrated Facebook SDK for React Native.
  • Configured Facebook app events. Events can be seen on the Events Manager dashboard.
  • Consulted the Facebook documentation on Conversion API.

I’ve found that the Conversion API is mainly designed for server-side tracking. My questions are:

  • How can I send installation events from a React Native app to the Facebook Conversion API?
  • Are there any specific libraries or tools I should use to facilitate this integration?
  • Should I send these events directly from the app, or is it better to send them through a server? Any guidance or examples would be greatly appreciated!

I really appreciate any help you can provide.

We have been using Facebook login in our app since forever and this has always worked well.

We have upgraded to the SDK v.17 and have changed the code to use limited login into our app. When we open the Facebook login screen, we are always getting this warning:

"If you are not using Limited Login, you will need to handle all Graph API calls using Graph API, iOS. The access token will not be valid. To learn more about changes to the Facebook SDK for iOS and how you can continue using the Facebook Login SDK, visit the blog."

This is strange, because as you can see in the screenshot it does go to limited.facebook.com...

We have implemented it as per the documentation, here is a code snippet with the relevant lines of code:

     let facebookManager = LoginManager()  guard let configuration = LoginConfiguration(permissions: ["email", "public_profile"], tracking: .limited, nonce: UUID().uuidString) else {     return }         facebookManager.logIn(configuration: configuration) { [self] result in     switch result {     case .cancelled:            // throw cancelled     case .failed:            // throw failed     case .success:         if let token = AuthenticationToken.current?.tokenString {            // send token to server         } else {            // throw no token error         }     } } 

Why do we get the warning on the Facebook Login page? Other than the above, is there anything else weI need to change to use limited login? What are we missing here? Also the token we get back doesn't seem to be valid (yet to be confirmed).