name 'instance' does not exist in namespace?

Hi,
I am trying to get the Prime31 Social Networking plug in to work, however, I am getting an error.

“CS0234: The type or namespace name ‘instance’ does not exist in the namespace ‘Facebook’. Are you missing an assembly reference?”

Puzzled as to the reason. Can some one help me sort out how I am to sort this? I realize this is a Prime31 thing, but it is also a basic coding thing. Any help is appreciated.

Thank you

Is that error coming from your code or from theirs?

Mine.
In my script, that I copied from there example, GUI manager, so I passed all interactivity out of their’s which uses onGui, to mine which uses Unity UI.

There were no errors until I added the Facebook SDK.

Do you have a namespace named Facebook that is colliding with a Prime31 class/namespace named Facebook?

I removed any namespace from my script. I originally had under the prime 31 namespace, but removed it, due to error.

using UnityEngine;
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using Prime31;
using Facebook;


public class Facebook_UI_MNG : MonoBehaviour {}

I should mention the method in question is…

Facebook.init();

There’s nothing named ‘instance’ in that line.

Oops.
Sorry.
Here is an example.

       Facebook.instance.checkSessionValidityOnServer( isValid =>
{
Debug.Log( "checked session validity on server: " + isValid );
});

So the question for me is, what is the instance of? How do I assign it? As far as It should be recognized in Awake. I followed the example scene, and placed only the elements in it that it had (into my own scene).
?

Facebook is a class in the Prime31 namespace. The fact that the error says something about instance not existing in the Facebook namespace still leads me to believe that you have a name collision.

Hm.
So would you think the fact I have no namespace on my custom script is an issue, or deeper rooted?

The Facebook sdk has a class called Facebook. This does not have a member called instance. There is your problem.

Use the fully qualified type name to get your other class called Facebook.

Okkkk.
That makes full sense, however, why would Prime31 not have adjusted for this? Maybe my Prime31 is not up to date?

So I removed “instance” as suggested, but I get a very similar error.

Prime31 has a support forum of their own. I suggest you go check it out.

Right.
Fair enough.
Thanks.