Exemplo n.º 1
0
    void CreateDirectServices()
    {
        // create direct services to social networks
        _twitter = new Twitter();
        _sinaWeibo = new SinaWeibo();

        //TODO: init facebook with your app ID and an array of permissions
        _facebook = new Facebook();
        _facebook.Init("1234567890", new string[] {"read_stream", "email", "publish_stream"});
    }
Exemplo n.º 2
0
    void CreateDirectServices()
    {
        // create direct services to social networks
        _twitter = new Twitter();
        _twitter.InitializationCompleted += OnDirectServiceInit;
        _twitter.InitializationFailed += OnDirectServiceInitFailed;
        _twitter.Init();

        _sinaWeibo = new SinaWeibo();
        _sinaWeibo.InitializationCompleted += OnDirectServiceInit;
        _sinaWeibo.InitializationFailed += OnDirectServiceInitFailed;
        _sinaWeibo.Init();

        // init facebook with your app ID and an array of permissions
        _facebook = new Facebook();
        _facebook.InitializationCompleted += OnDirectServiceInit;
        _facebook.InitializationFailed += OnDirectServiceInitFailed;
        _facebook.Init(facebookAppID, new string[] {"read_stream", "email", "publish_stream"});
    }