|
|
@@ -17,14 +17,14 @@ namespace facebook
|
|
|
namespace internal
|
|
|
{
|
|
|
using namespace std;
|
|
|
-
|
|
|
+
|
|
|
cbInit fInit = []() {};
|
|
|
cbFree fFree = []() {};
|
|
|
cbLogin fLogin = []() {};
|
|
|
cbLogout fLogout = []() {};
|
|
|
cbNewMeRequest fNewMeRequest = []() {};
|
|
|
cbGetFriends fGetFriends = []() {};
|
|
|
- cbGameRequest fGameRequest = [](const string &title, const string &text, const vector<string>& dest, const string &objectID, const std::string &userData){};
|
|
|
+ cbGameRequest fGameRequest = [](const string& title, const string& text, const vector<string>& dest, const string& objectID, const std::string& userData) {};
|
|
|
|
|
|
cbIsLoggedIn fIsLoggedIn = []() {return false; };
|
|
|
cbGetUserID fGetUserID = []() {return std::string(""); };
|
|
|
@@ -142,11 +142,10 @@ namespace facebook
|
|
|
fNewMeRequest();
|
|
|
log::messageln("facebook::newMeRequest done");
|
|
|
}
|
|
|
-
|
|
|
- void gameRequest()
|
|
|
+
|
|
|
+ void gameRequest(const string& title, const string& text, const vector<string>& dest, const string& objectID, const string& userData)
|
|
|
{
|
|
|
- vector<string> dest = {"1531304915"};
|
|
|
- fGameRequest("Hello", "Text", dest, "", "");
|
|
|
+ fGameRequest(title, text, dest, objectID, userData);
|
|
|
}
|
|
|
|
|
|
void getFriends()
|
|
|
@@ -234,8 +233,8 @@ namespace facebook
|
|
|
{
|
|
|
log::messageln("facebook::internal::newMyFriendsRequestResult %s", data.c_str());
|
|
|
}
|
|
|
-
|
|
|
- void gameRequestResult(const string &id, bool canceled)
|
|
|
+
|
|
|
+ void gameRequestResult(const string& id, bool canceled)
|
|
|
{
|
|
|
log::messageln("facebook::internal::gameRequestResult %s", id.c_str());
|
|
|
GameRequestEvent ev(id, canceled);
|