Facebook SDK didLoad:result = null

前端 未结 1 1434
情深已故
情深已故 2021-01-07 07:53

I have a Facebook singleton and request this to get a profile picture:

[[[FacebookScorer sharedInstance] facebook] requestWithGraphPath:@\"me/picture?type=no         


        
相关标签:
1条回答
  • 2021-01-07 08:23

    This can be solved by getting the data from the request:

    - (void)request:(FBRequest *)request didLoad:(id)result{
    result = request.responseText;
    
    if ([result isKindOfClass:[NSData class]])
    {   
        ...
    }
    
    if ([result isKindOfClass:[NSDictionary class]])
    {
        ...
    }
    

    Not the most elegant solution, and I still don't know why the result is nil. But it works.

    Hope this helps!

    0 讨论(0)
提交回复
热议问题