• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

 Please Fix the facebook extension tutorial document

pipebkOT

Member
https://help.yoyogames.com/hc/en-us/articles/360004488072-iOS-Android-and-HTML5-Integrating-Facebook
I'm not an expert in coding so correct me if i'm wrong , but i don't think that that's how ds_list_create works

problem 1
var _l = ds_list_create("fields", "id,name,picture");
fb_graph_request("me", "GET", _l);
ds_list_destroy(_l);
it gives a wrong number of arguments for function ds_list_create, since it should be 0 arguments
shouldn't use ds_list_create() first and then use ds_list_add to populate the ds list or whatever?


i think it should look something like this:
Code:
var _l = ds_list_create();
ds_list_add(_l,"fields","id,name,picture");
fb_graph_request("me", "GET", fields);
ds_list_destroy(_l);

problem 2:
var _l = ds_list_create("id", "123", "name", "John Doe", "picture", "http://url-to-picture.jpg");
the same as problem 1
.
 
Last edited:
Top