Facebook like button in iOS app using Facebook SDK
问题 My application requires a "Like Us on Facebook" functionality.I tried to use Facebook SDK and the "FBLikecontrol" of the SDK.This is the code i tried: FBLikeControl *likeControl = [[FBLikeControl alloc] initWithFrame:CGRectMake(138, 270, 180, 40)]; [likeControl setObjectID:@"facebook page url"]; [likeControl setLikeControlStyle:FBLikeControlStyleStandard]; [[self view] addSubview:likeControl]; On running on the device(iOS7),when clicked on the like button,app redirects to the safari Facebook