Answered by:
Facebook integration in cocos2d-xna project

Question
-
Hello
I am new to C#,please tell me how integrate facebook in cocos2d-xna project. Thanks in advance.
Senthil Kumar .K
- Edited by Senthil Kumar Apar Saturday, October 6, 2012 8:47 AM
Saturday, October 6, 2012 8:44 AM
Answers
-
Login to facebook must be done with either a web browser or web browser control. Since you need information back from the login (access token or whatever), you really need to use a web browser control. As such, your only option is to use a hybrid XNA/Silverlight application. If cocos2d-xna won't work in a hybrid configuration, then you are out of luck. Period.
This has been explained to you in basically every thread you've posted on the subject. Asking the question over and over will not change the answer.
- Proposed as answer by Usman Ur Rehman Ahmed Wednesday, October 10, 2012 7:34 PM
- Marked as answer by Mark Chamberlain - MSFT Wednesday, October 10, 2012 7:40 PM
Wednesday, October 10, 2012 5:02 PM -
Hi,
I got answer for my problem, Facebook Integration in cocos2d-xna. solution is change the cocos2d-xna framework, such way it support's silverlight-xna application. From there we can access the web-browser & also we can able access the cocos2d frame work.
- Marked as answer by Senthil Kumar Apar Monday, October 22, 2012 11:15 AM
- Edited by Senthil Kumar Apar Monday, October 22, 2012 11:16 AM
Monday, October 22, 2012 11:15 AM
All replies
-
Hi,
This seems to be two different topic areas.
1. Using Cococs2d
Are you referring to the porting project described here?
It is likely that this approach may be useful if porting cocos2d from another platform; otherwise it would probably make the most sense to write the app using the phone's native XNA development platform.
2. Facebook integration
Here are some thoughts regarding Facebook and XNA integration. The proposed solutions might not be ideal, depending on your needs.
http://stackoverflow.com/questions/4286901/post-wp7-game-achievements-from-xna-to-facebook
Mark Chamberlain Sr. Escalation Engineer | Microsoft Developer Support | Windows Phone 7
- Edited by Mark Chamberlain - MSFT Tuesday, October 9, 2012 3:38 PM
- Proposed as answer by Mark Chamberlain - MSFT Tuesday, October 9, 2012 3:38 PM
Tuesday, October 9, 2012 3:37 PM -
Hi
I already tried the link which u given, its using windows OS .dll file. While compile time its giving error & also its not compiling.
Senthil Kumar .K
Wednesday, October 10, 2012 8:50 AM -
Login to facebook must be done with either a web browser or web browser control. Since you need information back from the login (access token or whatever), you really need to use a web browser control. As such, your only option is to use a hybrid XNA/Silverlight application. If cocos2d-xna won't work in a hybrid configuration, then you are out of luck. Period.
This has been explained to you in basically every thread you've posted on the subject. Asking the question over and over will not change the answer.
- Proposed as answer by Usman Ur Rehman Ahmed Wednesday, October 10, 2012 7:34 PM
- Marked as answer by Mark Chamberlain - MSFT Wednesday, October 10, 2012 7:40 PM
Wednesday, October 10, 2012 5:02 PM -
Hi,
I got answer for my problem, Facebook Integration in cocos2d-xna. solution is change the cocos2d-xna framework, such way it support's silverlight-xna application. From there we can access the web-browser & also we can able access the cocos2d frame work.
- Marked as answer by Senthil Kumar Apar Monday, October 22, 2012 11:15 AM
- Edited by Senthil Kumar Apar Monday, October 22, 2012 11:16 AM
Monday, October 22, 2012 11:15 AM -
i have XNA app , which i need to be social integrated is there any way to integrate without Silver light App.
i heard about Cocos2D studio for XNA-C# , which have better social support . if you have knowledge how to integrate XNA app with Cocos2D pls provide Tutorials of that.
Friday, June 28, 2013 6:34 AM -
Hi Senthil Kumar,
I follow up your problem from Cocos forum to MS , even i got the same problem. I need to embed ad control in my game. Could you please gave a Hint How Do you use Cocos2d with Silverlight-xna framework together. Any Code/Hint will be Appreciated !!
Regards,
Pardeep
Thursday, November 14, 2013 11:55 AM