Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
Like
Comments
Bookmark
Share
Add to Playlist
Report
Vue.js & Django Social Scheduler: connect Facebook Pages using API
InterTuts
Follow
10/19/2024
In this video I'm explaining how I'm connecting the Facebook Pages in my Social Scheduler app using the official API.
Category
🦄
Creativity
Transcript
Display full video transcript
00:00
In this video, I'll explain how I'm connecting Facebook pages in my social scheduler app.
00:11
And, to connect the Facebook pages, I need to click on this button.
00:20
And, it will connect the Facebook pages in my application.
00:34
Now, let's take a look at the code.
00:39
I have an event handler for clicks on the Connect button.
00:51
When I click on this button, it triggers this function.
01:03
And, this function opens a pop-up with this view file.
01:19
And, I'm using an unmounted hook here to execute an HTTP request after the component has been rendered.
01:36
The scope of this request is to request a URL redirection for Facebook to request an authorization code with permissions to grant.
02:01
Sure, I could generate this URL directly here.
02:09
But, I don't want to use the Facebook application ID and secret in multiple places like frontend and backend.
02:26
For this reason, I'm using the Facebook credentials only in the backend.
02:38
When this request returns the redirect URL, I'm using it to redirect the user to the Facebook login page
02:52
where the user should grant the permissions.
02:59
Then, the user will be redirected to this URL which will call this view.
03:29
In this view, I'm using the unmounted hook with HTTP request
03:39
where I will use the authorization code to exchange for an access token in the backend.
04:09
If the access token was obtained successfully, I will request the Facebook pages and I will save them in the database.
04:39
And, finally, I will close the model or pop-up and will reload the social accounts.
Recommended
2:35
|
Up next
Vue.js & Django Social Scheduler: connect Facebook Pages with API url
InterTuts
9/5/2024
2:57
Vue.js & Django Social Scheduler: publish posts with images on Facebook Pages
InterTuts
10/29/2024
3:43
Vue.js & Django Social Scheduler: how to publish a post on a Facebook Page
InterTuts
10/31/2024
7:33
Vue.js & Django Social Scheduler: how to publish a post on multiple social accounts
InterTuts
10/31/2024
3:30
React & Node.js Social Chat: how to connect Facebook Pages to receive direct messages
InterTuts
12/18/2024
3:15
Vue.js & Django Social Scheduler: share one post on multiple social networks
InterTuts
11/17/2024
2:13
How to connect Instagram Threads accounts for posting using API
InterTuts
11/17/2024
1:47
React & Node.js Social Chat: unsubscribe Facebook Pages from application's webhook
InterTuts
12/18/2024
1:19
Vue.js & Django Authentication: Google API Login and Registration
InterTuts
7/10/2024
1:36
Vue.js & Django Authentication: how to create a logout link
InterTuts
7/7/2024
4:01
How to delete data from database using Django REST Framework
InterTuts
10/19/2024
2:08
Vue.js & Django Social Scheduler: how to share posts on Instagram Threads
InterTuts
11/16/2024
1:59
Vue.js & Django Social Scheduler: schedule posts to be shared on social networks
InterTuts
11/17/2024
0:49
React & Node.js Social Chat: Introduction
InterTuts
12/11/2024
2:40
Vue.js & Django Authentication: create a new app
InterTuts
7/2/2024
2:25
How To Access Imingle App on Facebook Without Subscription
Glorious Talkshows
9/6/2016
5:30
Bypass Facebook Login Approvals
Hbafcs
5/9/2016
4:27
Vue.js & Django Authentication: token login with Django REST Framework
InterTuts
7/4/2024
3:04
React & Node.js Authentication: how to integrate Google Sign-In API Part I
InterTuts
8/5/2024
2:28
Pagination in React & Next JS
InterTuts
12/20/2024
1:22
How to use notifications alerts in React & Next JS
InterTuts
12/18/2024
1:56
How to convert a string to MongoDB ObjectId in Node.js
InterTuts
12/17/2024
2:05
How to bulk insert or update data in MongoDb with Mongoose
InterTuts
12/16/2024
1:41
How to retrieve URL's query parameters in Next.js(CSR)
InterTuts
12/15/2024
3:27
How to handle dynamic route parameters in Express.js
InterTuts
12/14/2024