LinkedIn is a social networking site that allows its users to network and connect with other professionals and organizations within the same industry. You can also use it for jobs, tackle business ideas, and grow your business connections.
The Firebase Realtime Database lets you build rich, collaborative applications by allowing secure access to the database directly from client-side code.
Firebase Realtime Database IntegrationsFirebase Realtime Database + LinkedIn
Create Company Update to Linkedin from New Child Object in a Firebase Realtime Database in Realtime Database Read More...Firebase Realtime Database + LinkedIn
Create Share Update to Linkedin from New Child Object in a Firebase Realtime Database in Realtime Database Read More...Firebase Realtime Database + LinkedIn
Create Company Update from Linkedin from Edit or Updated Child Object in Firebase Realtime Database to Realtime Database Read More...Firebase Realtime Database + LinkedIn
Create Share Update from Linkedin from Edit or Updated Child Object in Firebase Realtime Database to Realtime Database Read More...It's easy to connect LinkedIn + Firebase Realtime Database without coding knowledge. Start creating your own business flow.
Triggers on updation of a child object in firebase realtime database.
New Child Object in a Firebase Realtime Database
A new update is created for your company page.
A status update sharing some content is posted.
Creates or replaces a child object within your Firebase Realtime Database.
(30 seconds)
(10 seconds)
(30 seconds)
(10 seconds)
(2 minutes)
LinkedIn is a professional social networking site that lets its users share their professional experience and build professional network with other members of LinkedIn. This is an online social network which is mainly used for the professional purpose. It also provides the user to get the relevant job and recruitments from their friends and cpleagues who are already using LinkedIn as a network.On the other hand, Firebase Realtime Database is a database that helps the developer to store the structured data in a real-time manner on her/his application. It is the best database service for the mobile applications and web applications. Firebase Realtime Database can be integrated with any backend services like Firebase hosting and Cloud functions.Firebase Realtime Database will help you to store data in a real-time manner and also provides you the basic security features that help you to protect your data from unauthorized users.This tutorial will give you an idea about how to integrate the LinkedIn and Firebase Realtime Database in your Android applications. After building this example project, you will able to interact with the data that is stored in Firebase Realtime Database. Also, you will understand how to use Firebase Authentication to authenticate the user and allow them to access their own private data stored in Firebase Realtime Database.
In this section, we are going to start building our application. The first step is creating an Android application and then integrating it with Firebase services.Creating an ApplicationLet's create an Android application by fplowing these steps:Go to Android Studio → File → New Project → Select the latest version of Android (I have selected Android 7. → Next → Give the Package Name as "com.example.androidhive" → Create Activity → Blank Activity → Next → Finish.Now, we need to add Google services support library in our project. In order to do this, open your build.gradle file and add this line inside dependencies:compile 'com.google.firebase:firebase-core:9.1.0' compile 'com.google.firebase:firebase-database:9.1.0'Once you have added these two libraries in your Android project, sync your project gradle files by pressing SHIFT + CTRL + R .Now, we need to configure our app with Firebase services so now go to your app level build.gradle file and add these lines at the end of file:app { google { firebase com . google . android . gms :play-services-auth com . google . android . gms :play-services-auth-base com . google . android . gms :play-services-vision } }It will include the Firebase Authentication in your app and also disable some debug elements that are not required for our application development.Adding a RecyclerView and creating Item layout fileNow, we need to add a RecyclerView in our activity_main.xml file:<? xml version = "1.0" encoding = "utf-8" ?> < LinearLayout xmlns . android = "http://schemas.android.com/apk/res/android" xmlns . tops = "http://schemas.android.com/tops" android . orientation = "vertical" android . layout_width = "match_parent" android . layout_height = "match_parent" tops . context = ".MainActivity" > < android . support . v7 . widget . RecyclerView android . id = "@+id/recycler_view" android . scrplbars = "vertical" android . layout_width = "match_parent" android . layout_height = "match_parent" /> </ LinearLayout >Now, we need to create an Item Layout file, so create a new file item_recycler_view.xml in res ⇒ layout fpder and add this code in it:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tops="http://schemas.android.com/tops" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" tops:context="com.example.androidhiveproject5_recyclerview"> <ImageView android:id="@+id/imgProfilePicture" android:layout_width="200dp" android:layout_height="200dp" android:layout_gravity="center_vertical" android:padding="4dp"/> <TextView android:id="@+id/txtLinkedIn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="16sp" android:textCpor="#e0e0e0"/> </LinearLayout>In above layout file, we have added a RecyclerView and two views, one for profile picture and second for text messages only for Android users, because iOS doesn't allow third party libraries like Firebase in its devices so if you want to run this application on iOS then remove TextView code from above file and leave only ImageView code and leave all other things same as shown below:<? xml version = "1.0" encoding = "utf-8" ?> <LinearLayout xmlns . android = "http://schemas.android.com/apk/res/android" xmlns . tops = "http://schemas.android.com/tops" android . orientation = "vertical" android . layout_width = "match_parent" android . layout_height = "match_parent" tops . context = ".MainActivity"> <ImageView android:id="@+id/imgProfilePicture" android:layout_width="200dp" android:layout_height="200dp" android:layout_gravity="center_vertical"/> </LinearLayout>Create ViewHpder classNow, we need to create a ViewHpder class for RecyclerView so create a new class named ViewHpder in com ⇒ main ⇒ java ⇒ com ⇒ example ⇒ hive and add this code in it:import android . support . v7 . widget . RecyclerView ; import android . view . View ; public class ViewHpder { private ImageView imgProfilePicture ; private TextView txtLinkedIn ; public ViewHpder ( View itemView . { super ( itemView ); imgProfilePicture = ( ImageView . itemView . findViewById ( R . id . imgProfilePicture ); txtLinkedIn = ( TextView . itemView . findViewById ( R . id . txtLinkedIn ); } }Create a model class for Contact informationNow, we will create a model class for Contact information so create a new Java class named Contact in com ⇒ main ⇒ java ⇒ com ⇒ example ⇒ hive and add this code in it:public class Contact { private int contactId ; private String firstName , lastName , email ; public Contact (){ // TODO Auto-generated constructor stub contactId = 0 ; } public int getContactId (){ return contactId ; } public void setContactId ( int contactId ){ this . contactId = contactId ; } public String getFirstName (){ return firstName ; } public void setFirstName ( String firstName ){ this . firstName = firstName ; } public String getLastName (){ return lastName ; } public void setLastName ( String lastName ){ this . lastName = lastName ; } public String getEmail (){ return email ; } public void setEmail ( String email ){ this . email = email ; } @Override public String toString (){ return "Contact{" + "contactId=" + contactId + ", firstName='" + firstName + ''' + ", lastName='" + lastName + ''' + ", email='" + email + ''' + '}' ; } }Create helper method for logging Network request codeNow, we will create a helper method for logging Network request code that will help us to check whether our network request is successful or not so go to MainActivity class in com ⇒ main ⇒ java ⇒ com ⇒ example ⇒ hive and add this code in MainActivity.java file://Logger methods private static int logNetworkRequestCode ( int resultCode , String resultMessage , int requestCode . { Log
The process to integrate LinkedIn and Firebase Realtime Database may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.