0

I am trying to like a facebook page using FBLikeControl. Well I am not so sure what is the objectID I need to pass.

I tried passing the FBAPPID(as received from developers.facebook.com) as the objectID which just ends up giving a screen with no content and noting gets reflected on the page as well.

FBLikeControl *like = [[FBLikeControl alloc] init];
like.objectType = FBLikeControlObjectTypePage;
like.objectID = @"https://graph.facebook.com/265899126804837/likes";
[self.tableView addSubview:like];

enter image description here

thatzprem
  • 4,697
  • 1
  • 33
  • 41

1 Answers1

1

If you're using FBLikeControlObjectTypePage, then the objectID should be either a page id, or a url to a Facebook Page. For example:

like.objectID = @"https://www.facebook.com/facebook";

or

like.objectID = @"20531316728";
Ming Li
  • 15,672
  • 3
  • 37
  • 35
  • Its not working for me please help me i want to implement fb like button in my ios application – vijay Oct 29 '15 at 13:31