Created
June 4, 2014 18:35
-
-
Save reyramos/4d38d412bdcbfe0e6ad7 to your computer and use it in GitHub Desktop.
Facebook with requirejs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define(['facebook'], function(){ | |
| FB.init({ | |
| appId: 'YOUR_APP_ID' | |
| , status: true | |
| , cookie: true | |
| , xfbml: true | |
| , version : 'v2.0' | |
| }); | |
| FB.getLoginStatus(function(response) { | |
| console.log(response); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment