Search Unity

Facebook SDK when selling paid apps rather than in-app payments

Discussion in 'iOS and tvOS' started by needforyouceo, Jan 23, 2021.

  1. needforyouceo

    needforyouceo

    Joined:
    Dec 3, 2020
    Posts:
    1
    Hello. I am selling paid apps, not in-app payments.

    So I want to send a purchase event to Facebook at the same time as installation. So the way I thought of it was to send a purchase event at the same time as FB.Init(); but it doesn't work like I thought.

    Looking for any insight on this situation. Thanks in advance!


    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using Facebook.Unity;

    public class FACEBOOKSDKCustom: MonoBehaviour
    {
    // Awake function from Unity's MonoBehavior
    void Awake()
    {
    if (!FB.IsInitialized) {
    // Initialize the Facebook SDK
    FB.Init();
    } else {
    // Already initialized, signal an app activation App Event
    FB.ActivateApp();
    }
    }
    }
     
  2. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    516
    You might have to ask Facebook developer support.