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://docuquangphat.com/

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

11 thoughts on “Facebook JavaScript SDK Tutorial | Getting Started (Login & Graph API)

  1. hi Washam. In My case the js SDK is loaded but still i am getting the error "Uncaught ReferenceError: FB is not defined" in

    'appId': '14866XXXXXXX',

    'cookie': true,

    'xfbml' : true,

    'version': 'v4.0'

    ) which is inisde window.fbAsyncInit = function() {} kindly help me

  2. 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?

  3. 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.

  4. is there a way for this plugin to only show when a user is logged in on fb and won't show when logged out?

Leave a Reply

Your email address will not be published. Required fields are marked *