Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

facebook-login

Facebook Login API HTTPS Issue

April 11, 2024 by Tarik

If you are not loading the javascript sdk async, you could see this error a lot. refer to: https://developers.facebook.com/docs/javascript/quickstart in addition, if you are using any Facebook plugins via the iframe code, be sure the src url protocol matches. <div id=”fb-root”></div> <script> window.fbAsyncInit = function() { // init the FB JS SDK FB.init({ appId : … Read more

Categories facebook-javascript-sdk Tags facebook-javascript-sdk, facebook-login Leave a comment

How to securely authorize a user via Facebook’s Javascript SDK

January 8, 2024 by Tarik

You don’t need to push the user’s ID via ajax. You should, on the server side, use the fbsr_{app_id} cookie which holds the signed_request. Parse this signed_request using your ‘secret’ app_secret issued by FB to get the ‘user_id’. NOTE: a successful parse also shows that the cookie data provided by FB is not tampered with. … Read more

Categories facebook Tags authorization, facebook, facebook-javascript-sdk, facebook-login, security Leave a comment

Identifying Facebook Messenger user with UserID from a Facebook Login

December 17, 2023 by Tarik

Facebook’s latest update includes a new “Account Linking” functionality that appears to solve this issue. See https://developers.facebook.com/docs/messenger-platform/account-linking

Categories facebook Tags facebook, facebook-graph-api, facebook-login, facebook-messenger Leave a comment

Uncaught ReferenceError: FB is not defined when using FB.getLoginStatus

December 7, 2023 by Tarik

You are calling FB.getLoginStatus before the SDK is loaded and/or initialized. To wait for that, that’s what the fbAsyncInit event is for. So put the method call in there.

Categories javascript Tags facebook, facebook-login, javascript Leave a comment

How to customize FBLoginVIew?

September 25, 2023 by Tarik

The answer is to go over the FBLoginView subviews, find the button and the label and customize them. Here is the code: FBLoginView *loginview = [[FBLoginView alloc] initWithPermissions:[NSArray arrayWithObject:@”publish_actions”]]; loginview.frame = CGRectMake(4, 95, 271, 37); for (id obj in loginview.subviews) { if ([obj isKindOfClass:[UIButton class]]) { UIButton * loginButton = obj; UIImage *loginImage = [UIImage … Read more

Categories objective-c Tags facebook, facebook-ios-sdk, facebook-login, ios, objective-c Leave a comment

FBSDKLog: Cannot use the Facebook app or Safari to authorize, fb**** is not registered as a URL Scheme

September 25, 2023 by Tarik

In myapp-Info.plist, I renamed URL Schemes key to CFBundleURLSchemes: Before: <key>CFBundleURLTypes</key> <array> <dict> <key>URL Schemes</key> <array> <string>fb***</string> </array> </dict> </array> After: <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>fb***</string> </array> </dict> </array> The difference is not visible in XCode because CFBundleURLSchemes is aliased with URL Schemes. As a consequence, you have to edit myapp-Info.plist manually.

Categories ios6 Tags facebook-login, ios6 Leave a comment

How to fix ‘Facebook has detected MyApp isn’t using a secure connection to transfer information.’ error in Laravel

September 23, 2023 by Tarik

You can do “Create Test App” and replace your App ID and Secret using the test app.

Categories laravel Tags facebook-graph-api, facebook-login, laravel, laravel-socialite Leave a comment

Error inflating class com.facebook.widget.LoginButton with Facebook SDK 4.0.1

September 14, 2023 by Tarik

Caused by: The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first. Make sure you initialized facebook SDK before setContentView. FacebookSdk.sdkInitialize(getApplicationContext()); setContentView(R.layout.activity_main);

Categories android Tags android, android-gradle-plugin, facebook, facebook-login Leave a comment

Login to Facebook using python requests

August 21, 2023 by Tarik

You need to send a complete form. The easiest way to find out what Facebook expects is to use something like Google Chrome’s developer tools to monitor your web requests. To make your life easier I’ve monitored my own login on Facebook, and reproduced it below (with private information redacted, obviously) with the unimportant information … Read more

Categories python Tags facebook, facebook-login, python, python-requests Leave a comment

The identity provider configuration is not found – React Native Firebase Authentication with FacebookAuthProvider

July 30, 2023 by Tarik
Categories firebase Tags facebook-login, firebase, firebase-authentication, react-native, react-native-fbsdk Leave a comment
Older posts
Page1 Page2 Page3 Next →

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa