Book Image

Delphi Programming Projects

By : William Duarte
Book Image

Delphi Programming Projects

By: William Duarte

Overview of this book

Delphi is a cross-platform programming language and software development kit that supports rapid application development for Microsoft Windows, Apple Mac OS X, Android, and iOS. With the help of seven practical projects, this book will guide you through the best practices, Delphi Run-Time Library (RTL) resources, and design patterns. Whether you use the Visual Component Library (VCL) or FireMonkey (FMX) framework, these design patterns will be implemented in the same way in Delphi, using Object Pascal. In the first few chapters, you will explore advanced features that will help you build rich applications using the same code base for both mobile and desktop projects. In addition to this, you’ll learn how to implement microservice architecture in Delphi. As you get familiar with the various aspects of Delphi, you will no longer need to maintain source code for similar projects, program business rules on screens, or fill your forms with data access components. By the end of this book, you will have gained an understanding of the principles of clean code and become proficient in building robust and scalable applications in Delphi.
Table of Contents (9 chapters)

Logging in with Facebook

You request an access token by opening the page. The access token is valid for only two hours. You can update the token in the background without the user having to log in again.

We have reached the last stage of this chapter. This is where we will add the final seasoning. To finally include the login functionality, you need to create a new form to receive a web page with which the user will interact to confirm their identity and to confirm the permissions requested by the application.

Coding login

Before encoding the login, we need to create a new form to display the Facebook authentication Uniform Resource Identifier (URI). By following the next steps alongside the new form, we will finally be able...