Facebook SDK Component, App-Events not working :(

Hi iam trying to use the Facebook component to be able to track app-events to Facebook. I got no error inside the code, but the tracking events is not registrered inside Facebook.

https://components.xamarin.com/view/facebookios

I have registrered the fb-displayname and fb-appid in the info.plist aswell.

Is there a way i can see that the events is sent, can i see some response? Or how can i debug this?

I have been trying this via the emulator and also deployed it to my phone.

Anyone have done this? and got it working?

Thanks
Jesper

`

    public override bool FinishedLaunching(UIApplication app, NSDictionary options)
    {

        global::Xamarin.Forms.Forms.Init();

      //  App.ScreenSize = new CGSize((CGRect)UIScreen.MainScreen.Bounds.Width, (CGRect)UIScreen.MainScreen.Bounds.Height);

        UIApplication.SharedApplication.IdleTimerDisabled = true;
        UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);
        UIApplication.SharedApplication.SetStatusBarHidden(false, false);
        LoadApplication(new App());  // method is new in 1.3

            //* Facebook integation//
            Settings.AppID = AppId; 
            Settings.DisplayName = AppName;
            // Not needed i guess cause when dont use facebook authentication.
            //return ApplicationDelegate.SharedInstance.FinishedLaunching(app, options);

        //Before integrated facebook API
         return base.FinishedLaunching(app, options);
    }


    public override void OnActivated(UIApplication application)
    {

        // Call the 'ActivateApp' method to log an app event for use
        // in analytics and advertising reporting. This is optional

        Facebook.CoreKit.AppEvents.ActivateApp();
        Facebook.CoreKit.AppEvents.Flush ();


    }

}

`

Answers

  • Digna.4167Digna.4167 USMember

    Hi Jesper Kramming,
    Hope you are doing well.

    I have followed same steps. In my case it was working previously, and suddenly it stopped. Please help me if you got succeeded to figure out any issue or point of workaround with this.

    Thanks,
    Digna

  • joben12joben12 Member ✭✭

    is this applicable in xamarin forms?

Sign In or Register to comment.