Connect / Post to Facebook using FBConnect Works on Simulator, but not iPhone

I implemented FBConnect in my iPhone App and it works great on Simulator (v4.3). However, when I test the same code on my iPhone (v4.3.3), it seems that my Facebook button now exits my application and opens the Facebook application. The Facebook application displays a page with the message that I have already allowed my application and that I must click "OK" to continue. At first I did not think that this necessarily indicates a problem, but when I click the "OK" button, I just return to my appViewController, where I first clicked on my Facebook button.

What I expected and what is happening correctly in my simulator is that a small window of the Facebook subcategory will appear in the application window after clicking the Facebook button, and I will be given the option of publishing on my Facebook wall.

I must mention that I was able to successfully run "DemoApp" (facebook-ios-sdk testing program) on my iPhone. In addition, my application does not crash and no errors are reported in my debugger console window.

Why do I experience such different results when I run the application on my iPhone? Has anyone else experienced a similar problem? What can I do to fix this?

Thanks in advance, Jeremy

+1
source share
1 answer

" " https://github.com/facebook/facebook-ios-sdk?

, Facebook. , , , . Facebook , , Facebook "" URL.

URL, plist ( , , , Facebook ), - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url . .

+2

All Articles