Skip to content

Update gradle, update dependencies, fix Facebook theme, fix Facebook CCT #440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 6, 2016
Merged

Update gradle, update dependencies, fix Facebook theme, fix Facebook CCT #440

merged 3 commits into from
Dec 6, 2016

Conversation

SUPERCILEX
Copy link
Collaborator

No description provided.

@@ -15,6 +16,10 @@
android:name="io.fabric.ApiKey"
android:value="@string/twitter_consumer_secret"/>

<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_application_id"/>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the Chrome Custom Tabs issue where Facebook would use CCT completely randomly.

See step 8 in the official documentation: https://developers.facebook.com/docs/facebook-login/android

FacebookSdk.sdkInitialize(appContext);
FacebookSdk.setApplicationId(applicationId);
FacebookSdk.setWebDialogTheme(theme);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the issue where the theme wasn't applied to the webview for some reason:

Old

screenshot_20161205-165327

New

screenshot_20161205-164658

@samtstern
Copy link
Contributor

@SUPERCILEX this is great! Thanks for solving that wacky CCT issue, I always assumed it was Facebook's fault somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants