【问题标题】:Getting Facebook Profile Pic in tableView Cell's ImageView [closed]在tableView Cell的ImageView中获取Facebook个人资料图片[关闭]
【发布时间】:2012-08-19 01:39:15
【问题描述】:

我在 facebook 中创建了我的 iphone 应用程序所需的应用程序。
我可以登录 facebook 帐户,我可以允许该应用程序进入我的应用程序。
能够获取已登录用户的个人资料图片网址。

编辑 我的问题是 我需要将该 url 转换为图像类型并需要在 tableview 单元格中显示。 谁能告诉我这件事。 请帮我。 非常感谢您提前提供的帮助。

【问题讨论】:

    标签: iphone facebook uitableview xcode4.2


    【解决方案1】:

    你需要这样的请求:

    [facebook requestWithGraphPath:@"me/picture" andDelegate:self];
    

    然后:

    (void)request:(FBRequest *)request didLoad:(id)result {
        imageView.image = [UIImage imageWithData:result];
    }
    

    【讨论】:

    • 海@Sebrasi。你能告诉在哪里打电话 [facebook requestWithGraphPath:@"me/picture" andDelegate:self];方法。实际上我已经写了上面提到的两个你。但我没有得到图像。可能是我打电话给错误的地方。请帮帮我。
    • 你应该看看新的 iOS 版 Facebook SDK:developers.facebook.com/docs/tutorials/ios-sdk-tutorial/…
    • 感谢@Sebrasi,它对我有帮助。您能帮我在 tableview 单元格的 imageview 中显示该个人资料图片吗?请帮助我。
    猜你喜欢
    • 1970-01-01
    • 2013-11-20
    • 1970-01-01
    • 1970-01-01
    • 2014-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多