// Funcao para checar se o usuario curtiu alguma pagina
    public IEnumerator IsLikedPage(string pageId, FacebookAPI.IsLikedPageCallback callback, int tries = 0)
    {
        // Cria URL do request
        string url = GRAPH_URL + "me/likes/" + pageId + "/?";

        url += "access_token=" + facebookToken;
        WWW like = new WWW(url);

        yield return(like);

        // Se houver algum erro, enviar erro para o callback
        if (like.error != null)
        {
            if (callback != null)
            {
                callback(like.error, false, pageId);
            }
            yield break;
        }

        // Caso contrario, decodar JSON recebido e validar conexão
        else
        {
            IJSonObject data = like.text.ToJSon();

            // Se o JSON recebido for invalido, retornar e enviar para o callback
            if (data.IsEmpty() || data.IsError())
            {
                if (callback != null)
                {
                    callback("Invalid JSon: " + like.text, false, pageId);
                }

                yield break;
            }

            // Valida conexão e envia para o callback
            if (callback != null)
            {
                callback(null,
                         (
                             data.Contains("data") &&
                             data["data"].Count > 0 &&
                             data["data"][0].GetString("id") == pageId
                         ),
                         pageId);
            }
        }
        yield break;
    }
 public GenerateState(string _pageId, FacebookAPI.IsLikedPageCallback callback, int tries = 0)
 {
     stateType = StateType.IsLikedPage; pageId = _pageId; isLikedPageCallback = callback;  this.tries = tries;
 }
		public GenerateState(string _pageId, FacebookAPI.IsLikedPageCallback callback, int tries = 0)
		{ stateType = StateType.IsLikedPage; pageId = _pageId; isLikedPageCallback = callback;  this.tries = tries; }