Open prabirshrestha opened 14 years ago
to differentiate graph api and old rest api, the methods will be similar to graph api methods, execpt with different method name as below.
[Obsolete("Use the graph api Get() if possible.")] public string GetUsingRestApi(string methodName, IDictionary<string, string> parameters);
methods names will have "UsingRestApi" appended to it.
partial old rest api implemented for synchronous methods.
[Obsolete("Use the graph api Get() if possible.")] public string GetUsingRestApi(string methodName, IDictionary<string, string> parameters){}
var result = fb.GetUsingRestApi("friends.get");
sync FQL also implemented
var result = fb.Query("SELECT uid from users");
Old rest api support was not initially planned.
But since facebook graph api doesn't support most of the features, i think its crucial to have it.
All methods using RestApi will be marked as [Obsolete] to discourage using it. Use the rest api only if you can't do it by Graph Api.