我怎么可以让我的朋友用我的Facebook应用程序与图形api asp.net [英] How can i get my friends using my facebook App with graph api asp.net

查看:114
本文介绍了我怎么可以让我的朋友用我的Facebook应用程序与图形api asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


JsonObject friends =(JsonObject)facebook.Api( 我/朋友?);


但是我无法让我的朋友使用我的应用程序怎么能得到他们? / p>

任何想法?



谢谢,

解决方案

我搜索并找到下面的代码;

  string query =SELECT uid FROM user WHERE has_added_app = 1 and uid IN(SELECT uid2 FROM friend WHERE uid1 =+ su .FbId +); 
JsonArray friendsArray =(JsonArray)facebook.Query(query);

它的工作,我想我们不能使用图形API,只有在这种情况下允许fql 。


Hi i'm using Facebook C# SDK i can get my friends like;

JsonObject friends = (JsonObject)facebook.Api("me/friends?");

But i couldn't get my friends which uses my application how can i get them?

Any idea?

Thanks,

解决方案

I searched and found the code below;

        string query = "SELECT uid FROM user WHERE has_added_app=1 and uid IN (SELECT uid2 FROM friend WHERE uid1 =" + su.FbId + ")";
        JsonArray friendsArray = (JsonArray)facebook.Query(query);

And it worked, I think we can't use graph api, only fql is allowed in that situation.

这篇关于我怎么可以让我的朋友用我的Facebook应用程序与图形api asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆