I have the Facebook sdk getting profile pics in my iPhone simulator. But for some reason it doesn't get the image on the device. I'm using the FBProfilePictureView.
/** The user's profile picture. */
@property (nonatomic, strong) IBOutlet FBProfilePictureView *profilePic;
And setting the user id
[cell.profilePic setProfileID: user.fbid];
Has anyone else come across this?
I can get mine back the same way. But I can't get friends'
您可以尝试使用我的替换配置文件图片视图,该视图通过在视图上添加了completionHandler
属性可以提供更好的错误报告... https://github.com/combinatorial/DBFBProfilePictureView
I got this problem as well.And solved it. For me, I just copy the Profile Picture View from the facebook demo project. If you did this as well. Do the following to solve it
Drag a UIView into your storyboard from collection
Set the class of that View as FBProfileView
Connect it with your code
If still not working, check did you pre-load that class. Add the [FBProfilePictureView class];
as the first line in the app delegate method of didFinishLaunching
Wish to help you
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.