从Facebook Graph API获取不超过100张照片

时间:2018-09-29 14:21:10

标签: php facebook facebook-graph-api

我正在尝试使用Facebook Graph API检索用户的所有照片,但我只能100张。

是否有可能获得更多?如果可以,如何获得?

我尝试了限制= 500,但是即使我不能超过100。 看到下面的代码...

class Frame extends JFrame{

    private int framePositionX, framePositionY, mousePositionX, mousePositionY, newMousePositionX, newMousePositionY;

    Frame(){

        addMouseListener(new MouseListener() {
            @Override
            public void mouseClicked(MouseEvent mouseEvent) {
                framePositionX = mouseEvent.getComponent().getX();
                framePositionY = mouseEvent.getComponent().getY();
                mousePositionX = mouseEvent.getX();
                mousePositionY = mouseEvent.getY();
            }
            @Override
            public void mousePressed(MouseEvent mouseEvent) {
                framePositionX = mouseEvent.getComponent().getX();
                framePositionY = mouseEvent.getComponent().getY();
                mousePositionX = mouseEvent.getX();
                mousePositionY = mouseEvent.getY();
            }
            @Override public void mouseReleased(MouseEvent mouseEvent) { }
            @Override public void mouseEntered(MouseEvent mouseEvent) { }
            @Override public void mouseExited(MouseEvent mouseEvent) { }
        });

        addMouseMotionListener(new MouseAdapter() {
            @Override
            public void mouseDragged(MouseEvent e) {
                newMousePositionX = e.getX();
                newMousePositionY = e.getY();
                int newFramePositionX = (newMousePositionX - mousePositionX)+ framePositionX;
                int newFramePositionY = (newMousePositionY - mousePositionY)+ framePositionY;
                e.getComponent().setLocation(newFramePositionX, newFramePositionY);
            }
        });

        setUndecorated(true);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        pack();
        setVisible(true);
    }
}

有人可以指导我吗!

0 个答案:

没有答案