有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

通过Java中的Facebook API将事件获取为Json

现在,我使用URL对象处理FacebookModel对象:

public ImageIcon getIconImage(String id) throws IOException {
    String url = "http://graph.facebook.com/" + id + "/picture" ; 
    URL pic = new URL(url); 
    ImageIcon icon = new ImageIcon(pic);
    return  icon;
}

我使用(用于图像图标):

public void actionPerformed(ActionEvent arg0) {         
    try {
        center.setIcon(model.getIconImage(display.getText())); 
    } catch (IOException ex) {
        Logger.getLogger(SubmitAction.class.getName()).log(Level.SEVERE, null, ex);
    }
}

如何以同样的方式获取用户事件

谢谢


共 (0) 个答案