1

我不断null?oauth_callback=x-opensocial-demo-app://callbackgetAuthorizationUrl. oauth3leggedscheme当我追踪到图书馆时,getAuth(providerName)正在返回null. 但是,我已经在我的主要活动中设置了我的提供者凭据,例如:

public void onCreate(Bundle savedInstanceState) {

    setScheme("x-opensocial-demo-app");

    Provider provider = new Provider();
    provider.setName("MyContainer");
    provider.setRestEndpoint("http://mycontainer.com/social/rest");
    provider.setRequestTokenUrl("http://mycontainer.com/oauth/request_token");
    provider.setAuthorizeUrl("http://mycontainer.com/oauth/authorize");
    provider.setAccessTokenUrl("http://mycontainer.com/oauth/access_token");        

    String consumer_key = "frttt-c3f1-cff4-qwee-e8deffc5d2de";
    String consumer_secret = "33b9e920d185c93a430a1d565e1c7621";        

    addProvider(provider, new String[] {consumer_key, consumer_secret});

    super.onCreate(savedInstanceState);

    setupClient ();

}

这里有什么问题?

4

0 回答 0