Skip to content

Commit

Permalink
Fix fb_dtsg regex
Browse files Browse the repository at this point in the history
  • Loading branch information
gave92 committed May 24, 2020
1 parent dc44648 commit 5651071
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fbchat-sharp/API/Exception.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class FBchatParseError : FBchatException
/// </summary>
/// <param name="message"></param>
/// <param name="data"></param>
public FBchatParseError(string message, JToken data = null) : base(message)
public FBchatParseError(string message, object data = null) : base(message)
{
this.Data.Add("data", data);
}
Expand Down
4 changes: 2 additions & 2 deletions fbchat-sharp/API/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace fbchat_sharp.API
/// </summary>
public class Session
{
private const string FB_DTSG_REGEX = "name=\"fb_dtsg\" value=\"(.*?)\"";
private const string FB_DTSG_REGEX = "\"name\":\"fb_dtsg\",\"value\":\"(.*?)\"";
private const string facebookEncoding = "UTF-8";
private HtmlParser _parser = null;
private string _fb_dtsg = null;
Expand Down Expand Up @@ -541,7 +541,7 @@ public async static Task<Session> from_cookies(Dictionary<string, List<Cookie>>
if (retry)
{
await this._do_refresh();
return await _post(url, query, files, as_graphql, cancellationToken);
return await _post(url, query, files, as_graphql, cancellationToken, false);
}
throw ex;
}
Expand Down

0 comments on commit 5651071

Please sign in to comment.