Error when changing or resetting FBProfilePictureView profileId
Posted
by
Jeff Schwartz
on Stack Overflow
See other posts from Stack Overflow
or by Jeff Schwartz
Published on 2013-10-17T14:59:26Z
Indexed on
2013/10/17
15:55 UTC
Read the original article
Hit count: 118
I have programmatically added an FBProfilePictureView
object to a view. When initially logging in, the user's profile picture displays as expected when setting the profileId of the object within the FBLoginViewDelegate
method loginViewFetchedUserInfo:user:
. However, when logging off the following line of code produces an error:
profilePicture.profileId = nil;
The error thrown is:
[__NSCFNumber isEqualToString:]: unrecognized selector sent to instance
Note: This was only an issue after I incrementally upgraded the iOS SDK from 3.5 to 3.8.
If anyone has encountered this issue, please let me know. Thanks!
© Stack Overflow or respective owner