I have implemented the FBSDKLikeControl in my project and my expectations is 'like' and 'liked' text change to respected device locale(ar-AE). But locale is not changed as expected, it simply show the English text not arabic text for 'like' and 'liked'.
self.buttonFBLike = [[FBSDKLikeControl alloc] init];
self.buttonFBLike.center=self.view.center;
self.buttonFBLike.likeControlStyle=FBSDKLikeControlStyleBoxCount;
[self.view addSubview:self.buttonFBLike]
// Share url like @"https://www.facebook.com/FacebookDevelopers"
[self.buttonFBLike setObjectID:shareURL];
self.buttonFBLike.enabled=YES;
[self.buttonFBLike isTouchInside];
can any one suggest how can I set the locale for FBLikeButton programatically
Your coding part is correct,Added optional FacebookSDKStrings.bundle to provide localized strings for international apps, so you need to include the FacebookSDKStrings.bundle to your project and it works as expected for me,
The following are in FacebookSDKStrings.bundle en.lproj(FacebookSDK.string), so once you add this bundle it will automatically changes the locale based on the device language for share and like button
Refer: Facebook change log for more details
Stack overflow link have more info