Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Windows 8 and Visual Studio 2012 Express for Win 8 Help

$
0
0
Well, I've managed to move code to VS 2012 by creating new solution with same structure and adding code files with some tweaking for system.reflection related code. It works fine now.

However, it seems there is a bug related to thread credential, as it shows null after every call to tweetinvi API, i'm not sure whats the root cause. However, i've added null check for thread credential and set it to application credential if true.
        TwitterCredentials.SetCredentials(
            TWITTER_ACCESS_TOKEN,
            TWITTER_ACCESS_TOKEN_SECRET,
            TWITTER_CONSUMER_KEY,
            TWITTER_CONSUMER_SECRET);

        var loggedUser = await UserAsync.GetLoggedUser();
        var tweetLists = await TweetListAsync.GetUserLists(loggedUser, true);
// thread credentials show null after returning from the above call (not sure why) Anyway, set it to application credentials and next call succeed
        if (TwitterCredentials.Credentials == null)
            TwitterCredentials.Credentials = TwitterCredentials.ApplicationCredentials;

        var friends = await loggedUser.GetFriendsAsync();
I haven't started investigating authentication module yet, but will update this thread if found root cause. Thanks

Viewing all articles
Browse latest Browse all 4126

Trending Articles