Skip to content

Instantly share code, notes, and snippets.

@staylor
Created June 6, 2012 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staylor/2885201 to your computer and use it in GitHub Desktop.
Save staylor/2885201 to your computer and use it in GitHub Desktop.
Load barebones for Facebook OAuth handshake
<?php
/**
* Set DOING_AJAX so the app doesn't try to set eMusic cookies
*
*/
define( 'DOING_AJAX', 1 );
define( 'SHORTINIT', 1 );
require( $_SERVER['DOCUMENT_ROOT'] . '/wordpress/wp-load.php' );
require( WP_CONTENT_DIR . '/mu-plugins/emusic-auth.php' );
require( ABSPATH . WPINC . '/capabilities.php' );
require( ABSPATH . WPINC . '/user.php' );
require( ABSPATH . WPINC . '/meta.php' );
require( ABSPATH . WPINC . '/general-template.php' );
require( ABSPATH . WPINC . '/link-template.php' );
require( ABSPATH . WPINC . '/formatting.php' );
require( ABSPATH . WPINC . '/kses.php' );
require( ABSPATH . WPINC . '/pluggable.php' );
require( ABSPATH . WPINC . '/ms-functions.php' );
require( ABSPATH . WPINC . '/ms-default-filters.php' );
require( ABSPATH . WPINC . '/ms-deprecated.php' );
wp_plugin_directory_constants();
ms_cookie_constants();
wp_cookie_constants();
do_action( 'facebook-init' );
global $current_user;
wp_get_current_user();
.......................
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment