J
James Lpz
Guest
Hi guys, I just can't figure this out.
I am trying to post something on the wall of facebook. Here is what I did.
I works correctly, no problems here. But what I am really trying to do is take a screenshot from the current game and post that to facebook.
So, first I create a screenshot
Then I execute this code
It does post but the picture field is just blank...
Has anyone done something like this? Instead of using a link for the "picture" field, use an in-game screenshot?
I am trying to post something on the wall of facebook. Here is what I did.
Code:
wallPostMap = ds_map_create(); //create the ds_map that stores all the information
ds_map_add(wallPostMap, "picture","http://i280.photobucket.com/albums/kk162/James_Lpz_Bnrstro/screen_zpsxlshxcvc.png"); //the picture displayed by the post
ds_map_add(wallPostMap, "link", "https://play.google.com/store/apps/details?id=com.numbigames.VPM"); //the link the post will lead to
ds_map_add(wallPostMap, "name", "Check out my Virtual Monster " + string(name) + "! It is level " + string(stage) + " and has won " + string(battles_won) + " battles!"); //the title of the post
ds_map_add(wallPostMap, "caption", "Raise your own virtual monster!"); //the caption on the bottom of the post
ds_map_add(wallPostMap, "description", "Check out my pet monster"); //the main text of the post
facebook_dialog("feed", wallPostMap, -1); //open up the facebook dialog that requests the user to make the post
ds_map_destroy(wallPostMap); //destroy the wallPostMap, since it is no longer needed
So, first I create a screenshot
Code:
screen_save("screen.png");
Code:
wallPostMap = ds_map_create(); //create the ds_map that stores all the information
ds_map_add(wallPostMap, "picture","screen.png"); //the picture displayed by the post
ds_map_add(wallPostMap, "link", "https://play.google.com/store/apps/details?id=com.numbigames.VPM"); //the link the post will lead to
ds_map_add(wallPostMap, "name", "Check out my Virtual Monster " + string(name) + "! It is level " + string(stage) + " and has won " + string(battles_won) + " battles!"); //the title of the post
ds_map_add(wallPostMap, "caption", "Raise your own virtual monster!"); //the caption on the bottom of the post
ds_map_add(wallPostMap, "description", "Check out my pet monster"); //the main text of the post
facebook_dialog("feed", wallPostMap, -1); //open up the facebook dialog that requests the user to make the post
ds_map_destroy(wallPostMap); //destroy the wallPostMap, since it is no longer needed
Has anyone done something like this? Instead of using a link for the "picture" field, use an in-game screenshot?