我使用以下代码生成访问令牌并从用户配置文件中检索一些基本字段。但我想检索新闻源,因为我需要使用newGraphPathRequest而不是newMeRequest。请告诉我怎么做?
%% // Now apply on original image
BWm = ~BW & mask ; %// note the ~ (not) operator because you want the "black" pixels
nb_black_pixels = sum(sum(BWm)) ;
imshow(BWm)
nb_black_pixels =
5283
答案 0 :(得分:0)
这应该有用。
mFacebookLoginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
@Override
public void onSuccess(LoginResult loginResult) {
GraphRequest request = GraphRequest.newGraphPathRequest(loginResult.getAccessToken(), "/me/home", new GraphRequest.Callback() {
@Override
public void onCompleted(GraphResponse graphResponse) {
}
});
}