使用SimpleFacebook登录后获取照片会返回0张照片。
我有100多张照片..
OnPhotosListener onPhotosListener = new OnPhotosListener() {
@Override
public void onFail( String reason ) {
Log.e( TAG, reason );
}
@Override
public void onException( Throwable throwable ) {
hideProgressDialog();
Log.e( TAG, "Bad thing happened", throwable );
}
@Override
public void onThinking() {
showProgressDialog( "Getting facebook photos.." );
Log.e( TAG, "Thinking..." );
}
@Override
public void onComplete( List<Photo> response ) {
hideProgressDialog();
Log.e( TAG, "Number of photos = " + response.size() );
for ( Photo p : response ) {
t( activity, "Photo id: " + p.getId() );
}
}
};
mSimpleFacebook.getPhotos( onPhotosListener );
...思维
照片数= 0