Facebook JavaScript SDK Tutorial | Getting Started (Login & Graph API)


Want a quick start to using the Facebook JavaScript SDK on your website? Watch this tutorial, and by the end, you’ll understand all the basics and even how to test and debug on your own computer!

Read more on my blog post:

0:00 – Intro
0:50 – Facebook App settings
2:28 – Begin a new project in Visual Studio for testing
4:53 – Facebook SDK JavaScript code snippet
6:56 – window.fbAsyncInit function
7:36 – Facebook Share button
10:12 – FB.init function
12:31 – Like or Send buttons
13:26 – Callbacks from FB.ui
15:55 – Facebook Login
18:40 – Sign out of your app to test your login flow
21:42 – Requesting and handling scopes or permissions
23:48 – Login popup blocked
24:45 – Add a clickable login button
26:30 – Make an API call via FB.api
28:18 – Include Facebook-supported and styled login buttons

Nguồn: https://hiepthanhbuildings.net/

Xem thêm bài viết khác: https://hiepthanhbuildings.net/giai-tri/


  1. Hey, thanks! I have a question I got an issue when I click on share I got this "Can't Load URL: The domain of this URL isn't included in the app's domains" I think it is something to do with configuration, can you please help me?

  2. Thanks so much for taking the time to make this video. I needed to learn this and you made it very easy. Literally made my Sunday. I was spending so much time trying to figure this stuff out through documentation.


Please enter your comment!
Please enter your name here