loginButton.setReadPermissions(Arrays.asList("public_profile, email, user_birthday", "user_friends"));
// Callback registration
loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
@Override
public void onSuccess(LoginResult loginResult) {
// App code
//
GraphRequest request = GraphRequest.newMeRequest(
loginResult.getAccessToken(),
new GraphRequest.GraphJSONObjectCallback() {
@Override
public void onCompleted(
JSONObject object,
GraphResponse response) {
// Application code
String email = object.optString("email");
String gender = object.optString("gender");
String name = object.optString("name");
String id = object.optString("id");
String user_birthday = object.optString("user_birthday");
String fields = object.optString("fields");
}
});
Bundle parameters = new Bundle();
parameters.putString("fields", "id,name,email,gender, birthday");
request.setParameters(parameters);
request.executeAsync();
}
@Override
public void onCancel() {
// App code
Log.v("LoginActivityApp", "cancel");
Toast.makeText(LoginActivity.this, "Cancel", Toast.LENGTH_SHORT).show();
}
@Override
public void onError(FacebookException exception) {
// App code
Log.v("LoginActivityApp", exception.getCause().toString());
Toast.makeText(LoginActivity.this, "Error", Toast.LENGTH_SHORT).show();
}
});
从选择选择工具箱项目我添加了Library1.dll,当我尝试单击并拖动它未在表单设计中添加时。
但是几天前我确实喜欢这个,它工作得很好。问题出在这里?如何在Windows窗体项目中添加它。
答案 0 :(得分:0)
理想情况下应该添加。如果不是,请重新打开您的应用程序,然后重试。另一种方法是通过代码在运行时添加它。