Search Unity

FB.ShareLink Error: Invalid long: "null"

Discussion in 'Android' started by ercion, Jul 12, 2018.

  1. ercion

    ercion

    Joined:
    Aug 15, 2016
    Posts:
    73
    Hi. I'm trying to integrate Share to Facebook using Facebook SDK in my Unity game which runs on Android. I followed the Getting Started Guide and the Android Guide and I ran the example scenes given in the Facebook SDK. I started the app on my Android phone with example scenes, did FB.Init>Share Dialog>Share - Link and I got this returned in the app:

    7/12/2018 08:00:45 PM
    Facebook.Unity.ShareResult
    ShareResult:
    Error: Invalid long: "null"
    RawResult: {"error":"Invalid long: \"null\"","callback_id":"2"}
    Cancelled: False
    ShareResult:
    PostId: null
    7/12/2018 08:00:36 PM
    OnInitCompleteCalled IsLoggedIn='False' IsInitialized='True'

    I've spent 2 days trying to get it to work. And the funny thing is, the same app works on some phones and gives error on the other. If anyone could help me fix this, I would appreciate it. Thanks.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please show the code that resulting in this error.
     
  3. ercion

    ercion

    Joined:
    Aug 15, 2016
    Posts:
    73
    Hello Jeff, thank you for replying.
    I didn't write any code. As I said in my original post, I ran the sample scenes that come with Facebook SDK.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes, I understand that. I was asking if you could please share the code [that they wrote]. It might be in a DLL, but you could search the project code for "ShareResult" for example.
     
  5. ercion

    ercion

    Joined:
    Aug 15, 2016
    Posts:
    73
    Thank you for replying again. I will get back to you as soon as I can. I'm loaded with other work right now :(