Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branch.setFBAppID support from the C# environment. #218

Open
klim-branch opened this issue Jul 12, 2024 · 0 comments
Open

Branch.setFBAppID support from the C# environment. #218

klim-branch opened this issue Jul 12, 2024 · 0 comments

Comments

@klim-branch
Copy link
Contributor

klim-branch commented Jul 12, 2024

Hi! This is Kun from the Branch integration team.

Could you please check and perhaps implement a function( Branch.setFBAppID ) from the C# front-end code using the Native Branch SDK?

Following function from the native side:

  package com.example.android
  
  import android.app.Application
  import io.branch.referral.Branch
  
  class CustomApplicationClass : Application() {
  
	  override fun onCreate() {
		  super.onCreate()
          
		  // Branch object initialization
		  Branch.getAutoInstance(this.applicationContext)
  
		  // Set your Facebook App ID for Meta Install Referrer
		  Branch.setFBAppID("YOUR_FACEBOOK_APP_ID_HERE")
	  }
  }

Reference: https://help.branch.io/using-branch/docs/facebook-install-referrer#1b-set-your-fb-app-id-meta-install-referrer-only

This is a necessary function to use the Meta Branch referrer, which will be used to get the Facebook data while following Facebook's AMM depreciation.

I was able to see that we indeed do have:

Branch.addFacebookPartnerParameter();

But it seems like this is not the right function since it requires 2 parameters and the following is the function method:

public static void addFacebookPartnerParameter(string name, string val) {

		if (!string.IsNullOrEmpty (name) && !string.IsNullOrEmpty (val)) {
			_addFacebookPartnerParameter (name, val);
		}
	}

Let me know if we indeed do have a function already to handle this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant