I try to invite a friend with a custom text. For Ex: Hi friends i just got #highscore in this game, can you beat me!
With the normal inviteFriends(…), i cannot do that, so i used the second method in sdk, use requestInvitableFriends() then inviteFriendsWithInviteIds(). It can send friend invitation but it don’t contain my wanted text but the last text from the first method.
In sdkbox doc, it mentioned “only available for games with a canvas implementation for the Facebook application. The canvas must be defined but doesn’t need to how any web content” <- what’s this mean? i try to host a simple webpage on google drive to test this out, but it seems not working.
Sorry to wasting your time, but it seems i cannot find GameRequestDialog, sdkbox contains only FBShareInfo. In PluginFacebook, there is only member function dialog(FBShareInfo *). I tried to update the newest version of sdkbox and facebook sdk using “sdkbox import facebook”, but still don’t have that feature, do you have any ideas?
BTW, do you find out how to send invite with user’s best score (predefined text) or captured screenshot, i’m trying to use Game Request feature to bypass this problem
Thanks in advance,
Ow, that’s it! Then, it mean we cannot set a predefined text, right?
Once more thing i want to ask you, when using graph api api(…) how can we get the response from that method?. I suppose the last parameter, but nothing happen. For Ex:
void HelloWorld::onRequestInvitableFriends( const sdkbox::FBInvitableFriendsInfo& fi ) {
std::vector<std::string> ids;
for (auto it = fi.begin(); it != fi.end(); ++it) {
ids.push_back(it->getUserId());
}
sdkbox::PluginFacebook::inviteFriendsWithInviteIds(ids, "your title", "Hi friends i just got #1000 in this game, can you beat me!");
}
Hi, it seems like i cannot get it work as i want. I even implement FBSDKGameRequestDialog to use send a request, but still there is no custom message attached to it. Is that mean Facebook do not support this or do i have to set up something particularly?