开发者

The issue with access to twiiter via socioLib in Android

开发者 https://www.devze.com 2023-03-28 06:57 出处:网络
In my app I should use socioLib and write simple code to get access to twitter: TwitterConnector twitter = SocialNetworkHelper

In my app I should use socioLib and write simple code to get access to twitter:

TwitterConnector twitter = SocialNetworkHelper
            .createTwitterConnector(CONS_KEY, CONS_SEC, CALLBACK);
    try {
        twitter.requestAuthorization(this);
        twitter.authorize(this);
    } catch 

When I run this code I catch esception:

oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: api.twitter.c开发者_JAVA百科om

Can you have idea where problem is?


Have you added internet permission to your AndroidManifest.xml?

<uses-permission android:name="android.permission.INTERNET" />

0

精彩评论

暂无评论...
验证码 换一张
取 消