SDKBOX Facebook integration

SDKBOX Facebook integration
0

#1

Hello
i am using sdkbox to intehrate facebook.
I followed the tutorial but
sdkbox.PluginFacebook.login(); here sdkbox is showing as unresolved variable.

do i need to include any code in project.json?


#2

@yinjimmy can help


#3

what tutorial ?

do you register SDKBox Facebook plugin http://docs.sdkbox.com/en/plugins/facebook/v3-js/#register-javascript-functions ?


#4

http://docs.sdkbox.com/en/plugins/facebook/v3-js/#register-javascript-functions I followed the steps given in this page


#5

sdkbox.PluginFacebook only works on iOS and Android. what platform do you run?


#6

web platform.
You mean i need to code for all three platforms?
Because the game i am developing is for all 3 platforms(android, ios and web)


#7

sdkbox only for iOS and Android, no web.


#8

I am writing code in java script and developing app for all 3 platforms.
So how can i integrate Facebook to all 3 platform
Can you please explain in details


#9

I think you need https://developers.facebook.com/docs/javascript/ .


#10

So the code will be like this
if (cc.sys.platform == cc.sys.IOS || cc.sys.platform == cc.sys.ANDROID)
{
sdkbox.PluginFacebook.init();
}
else
{
//javaScript code for web?
}


#11

yes. some code like yours.


#12

Okay, Thank you
I will try to implement as above