iosfacebookappcelerator-titaniumsharekit

Can't authenticate iOS with Facebook


Hopefully someone can help here, it's incredibly frustrating!

I have a couple of iOS apps built using Appcelerator Titanium and using the latest Sharekit module to allow me to share content via Twitter & Facebook.

The Twitter module works fine, but I'm having issues with Facebook authentication.

Now, I don't think it's an issue with my code in Titanium as I'm using the 'exact' same code in a different app which works and posts fine.

These two apps in question I'm struggling with are newly added to Facebook's App portal, where as the two that are working are ones I've added many months ago.

I've tried to copy the settings on the working one with the incorrect one, but no luck.

On the device, when you tap 'Share with Facebook' it opens up the Facebook app, asks me to authenticate my app, then slides the view away leaves me inside the Facebook app and doesn't redirect me back to my native app.

In the simulator, it takes me to Safari to authenticate and then once I click accept it then throws a an error:

'Page Can't be found'

it's almost like it can't work out the callback URL.

Anyone else got a suggestion? I'm pretty sure it's something I've not setup correctly on the Facebook side.


Solution

  • The issue was due to my plist file not being updated. I had copied it from the build folder originally into my project Resource folder, so the app was overwriting the new plist with that every time.

    All sorted now!