0

I am trying to run a simple iPhone application using Parse o integrate with facebook.

You can easily download the project here

The problem is when I login to facebook, I go to this page:

enter image description here

When I click on the Okay button, I get this error message:

enter image description here

So It does not navigate to the next ViewController (UserDetailsViewController).

Can you help me?

Ali
  • 9,800
  • 19
  • 72
  • 152

2 Answers2

2

You should add the app URL scheme for you app to the info.plst

Since you did not add this, iOS does not know how to open you app.

Adde the following to your apps info.plist:

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>fb<YOUR APPS FACEBOOK ID></string>
            <string><YOU APPS NAME></string>
        </array>
    </dict>
</array>

And replace the with you apps facebook ID but leaf the fb, it should look like fb1231654354.

rckoenes
  • 69,092
  • 8
  • 134
  • 166
  • Are you talking about : `Add a new entry in the URL Types section of your project info, with the format "fbYOUR_FB_APP_ID":` that is mentioned in the tutorial? If you mean this, I did it. – Ali Oct 11 '12 at 11:05
  • Yes that is what I meant, but did you replace the `YOUR_FB_APP_ID` with you facebook app ID? – rckoenes Oct 11 '12 at 11:07
  • Check it, because the error shows that iOS does not about the app URL scheme and there is unable to open your app. The problem should be in the `CFBundleURLSchemes` – rckoenes Oct 11 '12 at 11:08
0

I think you should avoid fb which you written prior to your app_id in delegate file.. fb is needed only in urlScheme

Andrew Barber
  • 39,603
  • 20
  • 94
  • 123
iPhone Dev
  • 49
  • 9