我在连接Linkedin API时遇到了一些问题。Linkedin Android SDK - 无法连接到API(INVALID_REQUEST)
我下面这个https://developer.linkedin.com/docs/android-sdk这https://developer.linkedin.com/docs/android-sdk-auth,但我得到这个错误代码:
{
"errorCode": "INVALID_REQUEST",
"errorMessage": "either bundle id or package name \/ hash are invalid, unknown, malformed"
}
我实现到目前为止是非常简单的:
public void shareOnLinkedin() {
AuthListener authListener = new AuthListener() {
@Override
public void onAuthSuccess() {
Log.d(TAG, "Success");
}
@Override
public void onAuthError(LIAuthError error) {
Log.d(TAG, error.toString());
}
};
LISessionManager
.getInstance(getApplicationContext())
.init(ColectionDetailActivity.this, buildScope(), authListener, true);
}
private static Scope buildScope() {
return Scope.build(Scope.R_BASICPROFILE, Scope.W_SHARE);
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
...
try {
LISessionManager.getInstance(getApplicationContext())
.onActivityResult(this, requestCode, resultCode, data);
} catch (Exception e) {
e.printStackTrace();
}
}
你可能会发现这些有用的http://stackoverflow.com/questio ns/29787977/android-linkedin-mobile-sdk-error http://duladissa.blogspot.com.au/2015/03/android-linkedin-sdk-100-usage.html让我知道你是否需要更多帮助。 –
可能是系统时间问题..检查你的移动时间.. – uday
同样的问题在这里,不能得到这个工作,也没有发现任何有用的:-(。 –