Advertisement
Guest User

Untitled

a guest
May 25th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. // Select which network the user will be working with (default = Facebook)
  2. PlayBento.Social.SelectNetwork(Social.SocialNetwork.Facebook);
  3.  
  4. // Login to get access to the user information
  5. PlayBento.Social.Login(LoginHandler);
  6. // New user will be created in cloud storage after successful login
  7.  
  8. // Post recommend (refer to share config)
  9. PlayBento.Social.PostRecommend(PostHandler)
  10.  
  11. // Post score (refer to share config)
  12. PlayBento.Social.PostScore(50, PostHandler);
  13.  
  14. // Post achievement (refer to share config)
  15. PlayBento.Social.PostAchievement("th.co.progaming.playbento.firstplay");
  16.  
  17. // Invite friends
  18. PlayBento.Social.Invite();
  19.  
  20. // Submit score
  21. PlayBento.Social.SubmitScore(50);
  22.  
  23. // There are much more methods for Social, please refer to the API Reference
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement