-
Notifications
You must be signed in to change notification settings - Fork 0
EZFB.appInit
Unk edited this page May 27, 2014
·
4 revisions
- App ID or Parameter Object : String or Object
- Cookie : Boolean
- Logging : Boolean
- Status : Boolean
- XFBML : Boolean
- ChannelUrl : String
- AuthResponse : Boolean
- FrictionlessRequests : Boolean
- HideFlashCallback : Function
- EZFB
EZFB을 초기화합니다. EZFB을 사용하기 위해서 반드시 처음 실행되어야 하는 기능입니다.
EZFB.appInit( 'YOUR_APP_ID' );
Facebook SDK 상의 FB.init 에서 사용하는 다른 파라미터를 사용하려면 다음과 같이 사용합니다.
EZFB.appInit( 'APP_ID', false, true, true, false, null, true, false, null );
// App ID, cookie, logging, status, xfbml, channelUrl, authResponse, frictionlessRequest, hideFalshCallback 순서입니다.
여러개의 파라미터를 사용한다면 오브젝트 리터럴을 이용하는 편이 편리합니다.
var options = {
appId : 'APP_ID',
cookie : false,
logging : true,
status : true,
xfbml : false,
channelUrl : null,
authResponse : true,
frictionlessRequests : false,
hideFlashCallback : null
};
EZFB.appInit( options );