1

Pls refer to my sample iphone app screen. How would I able to like a specific fanpage when I click this button?

any suggestions? using webviews like this Adding the Facebook Like Button in an iPhone App I think is too complex.. is there an easy step to do this? thanks!

enter image description here

Community
  • 1
  • 1
user3517855
  • 211
  • 1
  • 3
  • 12

1 Answers1

0

You can not like a fanpage using Graph API by making a customized button.

If you read the official documentation for the same-

The og.likes action can refer to any open graph object or URL, except for Facebook Pages or Photos.

Also,

For Facebook Pages or websites that do not integrate with Facebook Authentication, developers should continue to use the Like button social plugin.

So in order to avoid unintentional likes on the facebook pages, facebook don't allow you this. The only option is to add a facebook's like button in order to like a facebook page.

Sahil Mittal
  • 20,697
  • 12
  • 65
  • 90