Skip to content Skip to sidebar Skip to footer

Titanium - Facebook Login Doesn't Show On Device

I'm trying to create a login with Facebook using the Facebook modules that comes in Titanium framework. When I do a button click on the iphone emulator I get the login screen to Fa

Solution 1:

On iOS you need to have the following in tiapp.xml:

            <!-- Enable App Transport Security for Facebook -->
            <key>NSAppTransportSecurity</key>
            <dict>
                <key>NSExceptionDomains</key>
                <dict>
                    <key>facebook.com</key>
                    <dict>
                        <key>NSIncludesSubdomains</key>
                        <true/>
                        <key>NSExceptionRequiresForwardSecrecy</key>
                        <false/>
                    </dict>
                    <key>fbcdn.net</key>
                    <dict>
                        <key>NSIncludesSubdomains</key>
                        <true/>
                        <key>NSExceptionRequiresForwardSecrecy</key>
                        <false/>
                    </dict>
                    <key>akamaihd.net</key>
                    <dict>
                        <key>NSIncludesSubdomains</key>
                        <true/>
                        <key>NSExceptionRequiresForwardSecrecy</key>
                        <false/>
                    </dict>
                </dict>

And on Android:

        <application>
            <activity android:label="@string/app_name"
                android:name="com.facebook.LoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
            <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
        </application>

Post a Comment for "Titanium - Facebook Login Doesn't Show On Device"