lua_plugin.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. plugin = plugin or {}
  2. plugin.FacebookAgent = plugin.FacebookAgent or {}
  3. plugin.FacebookAgent.HttpMethod =
  4. {
  5. GET = 0,
  6. POST = 1,
  7. DELETE = 2,
  8. }
  9. plugin.FacebookAgent.AppEvent =
  10. {
  11. ACTIVATED_APP = "fb_mobile_activate_app",
  12. COMPLETED_REGISTRATION = "fb_mobile_complete_registration",
  13. VIEWED_CONTENT = "fb_mobile_content_view",
  14. SEARCHED = "fb_mobile_search",
  15. RATED = "fb_mobile_rate",
  16. COMPLETED_TUTORIAL = "fb_mobile_tutorial_completion",
  17. ADDED_TO_CART = "fb_mobile_add_to_cart",
  18. ADDED_TO_WISHLIST = "fb_mobile_add_to_wishlist",
  19. INITIATED_CHECKOUT = "fb_mobile_initiated_checkout",
  20. ADDED_PAYMENT_INFO = "fb_mobile_add_payment_info",
  21. PURCHASED = "fb_mobile_purchase",
  22. ACHIEVED_LEVEL = "fb_mobile_level_achieved",
  23. UNLOCKED_ACHIEVEMENT = "fb_mobile_achievement_unlocked",
  24. SPENT_CREDITS = "fb_mobile_spent_credits",
  25. }
  26. plugin.FacebookAgent.AppEventParam =
  27. {
  28. CURRENCY = "fb_currency",
  29. REGISTRATION_METHOD = "fb_registration_method",
  30. CONTENT_TYPE = "fb_content_type",
  31. CONTENT_ID = "fb_content_id",
  32. SEARCH_STRING = "fb_search_string",
  33. SUCCESS = "fb_success",
  34. MAX_RATING_VALUE = "fb_max_rating_value",
  35. PAYMENT_INFO_AVAILABLE = "fb_payment_info_available",
  36. NUM_ITEMS = "fb_num_items",
  37. LEVEL = "fb_level",
  38. DESCRIPTION = "fb_description",
  39. }
  40. plugin.FacebookAgent.AppEventParamValue =
  41. {
  42. VALUE_YES = "1",
  43. VALUE_NO = "0",
  44. }