You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 5, 2021. It is now read-only.
Add a GetGraphNode or similar function to FacebookService.
Right now we have to type:
var req = s.CreateRequest (
"GET",
new Uri ("https://graph.facebook.com/598072388?fields=friends.fields(first_name,name,gender,updated_time)"),
account);
var resp = await req.GetResponseAsync ();
var json = JsonObject.Parse (resp.GetResponseText ());
It would be nice to get that down to 1 line:
public static async Task<JsonObject> GetGraphLinkAsync (this FacebookService facebook, string link, Account account)
{
var req = facebook.CreateRequest (
"GET",
new Uri (link),
account);
using (var resp = await req.GetResponseAsync ()) {
return (JsonObject)JsonObject.Parse (resp.GetResponseText ());
}
}
public static async Task<JsonObject> GetGraphAsync (this FacebookService facebook, string query, Account account)
{
var req = facebook.CreateRequest (
"GET",
new Uri ("https://graph.facebook.com/" + query),
account);
using (var resp = await req.GetResponseAsync ()) {
return (JsonObject)JsonObject.Parse (resp.GetResponseText ());
}
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add a GetGraphNode or similar function to FacebookService.
Right now we have to type:
It would be nice to get that down to 1 line:
The text was updated successfully, but these errors were encountered: