How to integrate “Facebook” and use it in cocos2d-x2.2.2/3.0beta2version (Tutorial1: for Android )Part1

Hi yuye

When i login facebook for the first time from game its logging in is happening but when i logout from the facebook app and try to login frm my game it is directly going into this else condition

“Session.openActiveSession(activity, true, statusCallback);” which shud not happen and should go to

"if (!session.isOpened() && !session.isClosed()) {
session.openForRead(new Session.OpenRequest(activity)
.setPermissions(permissionFriendsList).setCallback(
statusCallback));
} "

I m not getting login dialogue for the second time. But when i click on post on wall button itz asking for login btn

Thanks

Thanks for the tutorial.

Under “Create a Facebook App” You say note down App ID, you need this later.
But I don’t see you using it anywhere later, nor ever mention it anymore.

Now I know it is the ID you enter where you talk about "Add the following code into “res/values/strings.xml”
But the ID you enter there is different from the ID in the screenshot.

You might wanna clear that up!

thanks .
but have you other plugin for invite friend on facebook?
if you made it,please help me.

hello
thanks for your posting.
but with your plugin,i have one issue using it.
when i tried to post image to the facebook,the image i select is not showed on the app and facebook site as well.
i converted selected image to bitmap and post it.
please help me how to post image with other contents.