Adding the Facebook Like Button in an iPhone App

前端 未结 11 980
忘掉有多难
忘掉有多难 2020-12-04 17:08

Does anyone know how I would include a facbeook \"like button\" in an iphone app. I tried calling the iframe inside of a UIWebView but that doesn\'t work.

11条回答
  •  庸人自扰
    2020-12-04 17:25

    It is an old question, but we just got the answer

    By using fb sdk now we can simply add the like button

    FBLikeControl *likeButton = [[FBLikeControl alloc] init];
    like.objectID = @"http://ihackthati.wordpress.com/photo1/";
    [self addSubview:like];
    

    https://developers.facebook.com/docs/ios/like-button/

提交回复
热议问题