philippec / PhFacebook

MacOSX Interface to Facebook graph API
http://developer.casgrain.com/?p=107
Other
178 stars 44 forks source link

ApplicationID.h #25

Closed TBrink closed 12 years ago

TBrink commented 12 years ago

I tried to use your test application. You wrote "it will create a file called ApplicationID.h". That did not happened. At Facebook developers I could not find any hint which definition needed. Can you give me a hint what I have to declare in ApplicationID to get it running. Actual the the build process runs successful but no windows is opening.

TBrink commented 12 years ago

In the meantime I found the necessary definition: NSString* APPLICATION_ID = @"_my_ID"; But still the app is not generated. The 'FacebookTest.app" is lighted in red and not generated!?

philippec commented 12 years ago

Hello,

When you do a clean pull, the file "ApplicationID.h" is not included. Since it does not exist, there is an automatic script that creates it with the following content:

#error Delete this line and enter your application ID below
NSString* APPLICATION_ID = @"Your Application ID goes here";

This will obviously break at compile-time, and you need to supply your own app id from your Facebook developer page.

Also, make sure you compile the "FacebookTest" target in the FacebookTest.xcodeproj project. It should compile the dependent framework (PhFacebook) and build the sample app.