我不断null?oauth_callback=x-opensocial-demo-app://callback
从getAuthorizationUrl
. 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 ();
}
这里有什么问题?