Manthan
Manthan

Reputation: 3914

Getting error "This App is not available for your phone" when opening facebook page from iphone app

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.

Upvotes: 0

Views: 799

Answers (1)

Rajan Balana
Rajan Balana

Reputation: 3815

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.

Upvotes: 1

Related Questions