public static void setDefaultAudience(FacebookSessionDefaultAudience defaultAudience)
 {
     if (Application.platform != RuntimePlatform.Android)
     {
         return;
     }
     FacebookAndroid._facebookPlugin.Call("setDefaultAudience", new object[]
     {
         defaultAudience.ToString()
     });
 }
Exemplo n.º 2
0
    public static void reauthorizeWithPublishPermissions(string[] permissions, FacebookSessionDefaultAudience defaultAudience)
    {
        if (Application.platform != RuntimePlatform.Android)
        {
            return;
        }
        string text;

        if (defaultAudience != FacebookSessionDefaultAudience.OnlyMe)
        {
            text = defaultAudience.ToString().ToUpper();
        }
        else
        {
            text = "ONLY_ME";
        }
        FacebookAndroid._facebookPlugin.Call("reauthorizeWithPublishPermissions", new object[]
        {
            permissions.toJson(),
            text
        });
    }
Exemplo n.º 3
0
        // Reauthorizes with the requested publish permissions and audience
        public static void reauthorizeWithPublishPermissions(string[] permissions, FacebookSessionDefaultAudience defaultAudience)
        {
            if (Application.platform != RuntimePlatform.Android)
            {
                return;
            }

            // fix up the audience
            string audienceString = null;

            switch (defaultAudience)
            {
            case FacebookSessionDefaultAudience.OnlyMe:
                audienceString = "ONLY_ME";
                break;

            default:
                audienceString = defaultAudience.ToString().ToUpper();
                break;
            }

            _facebookPlugin.Call("reauthorizeWithPublishPermissions", permissions.toJson(), audienceString);
        }
Exemplo n.º 4
0
    // Reauthorizes with the requested publish permissions and audience
    public static void reauthorizeWithPublishPermissions(string[] permissions, FacebookSessionDefaultAudience defaultAudience)
    {
        if (Application.platform != RuntimePlatform.Android)
        {
            return;
        }

        _facebookPlugin.Call("reauthorizeWithPublishPermissions", permissions.toJson(), defaultAudience.ToString());
    }
Exemplo n.º 5
0
    // Reauthorizes with the requested publish permissions and audience
    public static void reauthorizeWithPublishPermissions( string[] permissions, FacebookSessionDefaultAudience defaultAudience )
    {
        if( Application.platform != RuntimePlatform.Android )
            return;

        _facebookPlugin.Call( "reauthorizeWithPublishPermissions", permissions.toJson(), defaultAudience.ToString() );
    }
Exemplo n.º 6
0
		// Sets the default audience for the authentication system. Call this before logging a user in.
		public static void setDefaultAudience( FacebookSessionDefaultAudience defaultAudience )
		{
			if( Application.platform != RuntimePlatform.Android )
				return;

			_facebookPlugin.Call( "setDefaultAudience", defaultAudience.ToString() );
		}
Exemplo n.º 7
0
	// Reauthorizes with the requested publish permissions and audience
	public static void reauthorizeWithPublishPermissions( string[] permissions, FacebookSessionDefaultAudience defaultAudience )
	{
		if( Application.platform != RuntimePlatform.Android )
			return;

		// fix up the audience
		string audienceString = null;
		switch( defaultAudience )
		{
			case FacebookSessionDefaultAudience.OnlyMe:
				audienceString = "ONLY_ME";
				break;
			default:
				audienceString = defaultAudience.ToString().ToUpper();
				break;
		}

		_facebookPlugin.Call( "reauthorizeWithPublishPermissions", permissions.toJson(), audienceString );
	}