照片数量:0

时间:2015-03-08 19:50:25

标签: photos android-simple-facebook

使用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

为什么?

0 个答案:

没有答案