0

I am having an app in which I am opening my Facebook Like page.

I am using this Link for that.

But when I try to open this It doesn't go to my Facebook Like page.

It opens up my app with Logo but there is no like page for my app.

It says " This app is not available for your phone."

I have passed the correct AppId from Facebook.

Do I need to set up any additional details from Facebook Developers Guide?

Please help me. Any help will be appreciated.

Community
  • 1
  • 1
Manthan
  • 3,856
  • 1
  • 27
  • 58

1 Answers1

1

For my application, I am using this code and it works pretty well. Seems like you are doing something wrong.

NSURL *url = [NSURL URLWithString:@"fb://profile/268179536658143"];
if ([[UIApplication sharedApplication] canOpenURL:url])
{
      [[UIApplication sharedApplication] openURL:url];
}

EDIT: You were taking App ID, not the fan page ID. Please correct it.

Rajan Balana
  • 3,775
  • 25
  • 42
  • Yes, I am also doing the same thing. Can you please tell me what things need to set up from Facebook Developers guide? – Manthan Nov 27 '13 at 13:07
  • Nothing needs to be setup from the developers guide. If you want the above code to work the only mandatory thing is to have the Facebook Official Application installed on your phone. – Rajan Balana Nov 27 '13 at 13:11
  • Hey , You need to use the Facebook Page ID not the App ID, seems like this is the thing you are doing wrong !! – Rajan Balana Nov 27 '13 at 13:13
  • Under the facebook developers guide->apps->my appname->settings->Appid/APIKey. Right? – Manthan Nov 27 '13 at 13:15
  • Nope, That's App ID, you want to open the page, You need the Facebook Fan Page ID bro :D – Rajan Balana Nov 27 '13 at 13:16
  • Ohhh!From Where do i get that? – Manthan Nov 27 '13 at 13:17
  • Thanks man. I was taking the wrong fan page appid. You can find your fan page app id just by clicking on your profile picture of your fan page and in your browser the last number from your url is your fan page appid. – Manthan Nov 28 '13 at 04:57