Facebook Login tutorial

Hi,

I do need a guidance how to implement Facebook Login for web desktop,iOS and Android using sdkbox plugins. Appreciate your help

I follwed this reference http://docs.sdkbox.com/en/plugins/facebook/v3-js/, but when I run sdkbox import facebook from project root folder, I got following error message

Copyright © 2015 SDKBOX Inc. v1.0.1.2
** #FATAL: unsupported cocos2d-x major version**
** Installation failed :(**

what’s your cocos2d-x version ?

my cocos2d-x version is 3.9

$ sdkbox.py symbols | grep "COCOS_2DX"

can you explain it more detail

sorry,

go to your project directory, and run bellow command

$ sdkbox.py symbols | grep "COCOS_2DX"

it show your project cocos2d version, as:

$  sdkbox.py symbols | grep "COCOS_2DX"
     COCOS_2DX_INSTALLATION_VERSION     3.11.0
     COCOS_2DX_ROOT                     /Users/jryin/workspace/cocos2d-x/
     COCOS_2DX_VERSION                  3.8.1

okay I got this

 COCOS_2DX_INSTALLATION_VERSION     3.8.0
 COCOS_2DX_ROOT                     /Applications/Cocos/frameworks/cocos2d-x-3.9/
 COCOS_2DX_VERSION                  3.8.0

I know I can run sdkbox import facebook on jsb-default but it’s for native platform. How can I implement Facebook login on web

Currently the facebook plugin only supports native.

Thank you @nite, you have any plan to support it in near future. There is no solution to integrate Facebook login on web desktop for now?

I have a similar problems, but have solved after search from Google. Thanks anyway for the warm-hearted members @nite.

@BlackBlades2013 can you share your solution then?

Hi @trungnt85

Maybe the below tutorial can help you:

https://blog.beanpolelabs.com/integrating-facebook-into-cocos2dx-fad36d23866b#.pmc5s9twq

God Bless…

Sincerely,

Sunday

Thanks @luke2125, I’m checking the tutorial now

Hi @luke2125 , the tutorial is helpful but it’s not for web desktop. I’m wondering there is a way to integrate login with Facebook account into my game

Hi @trungnt85

Check the below out:

https://developers.facebook.com/docs/sharing/web

https://developers.facebook.com/docs/sharing/webmasters

You can use webview from Cocos Creator… God Bless…

Sincerely,

Sunday