FBLikeControl does not load nor function

后端 未结 4 1507
日久生厌
日久生厌 2021-01-21 04:13

With the new release of facebook ios sdk, the documentation is talking about the facebook like control, that allows to like a page. https://developers.facebook.com/docs/ios/like

4条回答
  •  甜味超标
    2021-01-21 04:43

    Mawoon answered worked for me. Thank you sir.

    Usage example:

    [FBSettings enableBetaFeature:FBBetaFeaturesLikeButton];
    [FBSettings enablePlatformCompatibility:NO];
    
    FBLikeControl *like = [[FBLikeControl alloc] init];
    like.frame = CGRectMake(itemX, itemY, 60, 20);
    like.likeControlStyle = FBLikeControlStyleButton;
    like.objectID = @"http://shareitexampleapp.parseapp.com/photo1/";
    

    For some reason I'm not being able to set the 'size' of the like button, also changing the value of the likeControlStyle is not yielding any results, could be because its still a preview feature.

提交回复
热议问题