This can be done with FQL.
SELECT uid FROM user
WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = ?)
AND is_app_user = 1
QED!
源自:http://stackoverflow.com/questions/2785093/facebook-friends-getappusers-using-graph-api
问:
I have an application that uses the old REST API call Friends.getAppUsers to get the list of friends for the current user that have authorized my application.
I have read the docs, but I can't figure out how to do this with the Graph API. Can someone give me an example?
答:
http://stackoverflow.com/questions/2785093/facebook-friends-getappusers-using-graph-api
10
|
This can be done with FQL.
QED! | ||
feedback
|
6
|
OLD REST API: $facebook->api_client->friends_getAppUsers(); NEW GRAPH API: $facebook->api(array('method' => 'friends.getAppUsers')); enjoy :-) | ||||
feedback
|
5
|
I've done a lot of investigating on this issue. From what I can tell there is no way to do Friends.getAppUsers using the graph API. The latest SDKs provided by facebook all use the old REST api to get friends using the app. | ||
feedback
|
4
|
Yes, the Graph API is horribly documented. I don't see any documentation for an "application" type, but they do reference an application's info in the docs: https://graph.facebook.com/2439131959 So, perhaps you can get the application's members using the Group syntax? https://graph.facebook.com/2439131959/members You'll need an authenticated session to test it. Otherwise, it looks like Facebook is pushing us to use FQL to send queries directly: http://developers.facebook.com/docs/reference/fql/application
So you can pass a FQL query to get information about your application. | ||||||||
Was this post useful to you?
|
10
|
This can be done with FQL.
QED! | ||||||||
feedback
|
6
|
OLD REST API: $facebook->api_client->friends_getAppUsers(); NEW GRAPH API: $facebook->api(array('method' => 'friends.getAppUsers')); enjoy :-) | ||||
feedback
|
5
|
I've done a lot of investigating on this issue. From what I can tell there is no way to do Friends.getAppUsers using the graph API. The latest SDKs provided by facebook all use the old REST api to get friends using the app. | ||
feedback
|
4
|
Yes, the Graph API is horribly documented. I don't see any documentation for an "application" type, but they do reference an application's info in the docs: https://graph.facebook.com/2439131959 So, perhaps you can get the application's members using the Group syntax? https://graph.facebook.com/2439131959/members You'll need an authenticated session to test it. Otherwise, it looks like Facebook is pushing us to use FQL to send queries directly: http://developers.facebook.com/docs/reference/fql/application
So you can pass a FQL query to get information about your application. | ||||||||
Was this post useful to you?
|
10
|
This can be done with FQL.
QED! | ||||||||
feedback
|
6
|
OLD REST API: $facebook->api_client->friends_getAppUsers(); NEW GRAPH API: $facebook->api(array('method' => 'friends.getAppUsers')); enjoy :-) | ||||
feedback
|
5
|
I've done a lot of investigating on this issue. From what I can tell there is no way to do Friends.getAppUsers using the graph API. The latest SDKs provided by facebook all use the old REST api to get friends using the app. | ||
feedback
|
4
|
Yes, the Graph API is horribly documented. I don't see any documentation for an "application" type, but they do reference an application's info in the docs: https://graph.facebook.com/2439131959 So, perhaps you can get the application's members using the Group syntax? https://graph.facebook.com/2439131959/members You'll need an authenticated session to test it. Otherwise, it looks like Facebook is pushing us to use FQL to send queries directly: http://developers.facebook.com/docs/reference/fql/application
So you can pass a FQL query to get information about your application. | ||||||||
Was this post useful to you?
|
10
|
This can be done with FQL.
QED! | ||||||||
feedback
|
6
|
OLD REST API: $facebook->api_client->friends_getAppUsers(); NEW GRAPH API: $facebook->api(array('method' => 'friends.getAppUsers')); enjoy :-) | ||||
feedback
|
5
|
I've done a lot of investigating on this issue. From what I can tell there is no way to do Friends.getAppUsers using the graph API. The latest SDKs provided by facebook all use the old REST api to get friends using the app. | ||
feedback
|
4
|
Yes, the Graph API is horribly documented. I don't see any documentation for an "application" type, but they do reference an application's info in the docs: https://graph.facebook.com/2439131959 So, perhaps you can get the application's members using the Group syntax? https://graph.facebook.com/2439131959/members You'll need an authenticated session to test it. Otherwise, it looks like Facebook is pushing us to use FQL to send queries directly: http://developers.facebook.com/docs/reference/fql/application
So you can pass a FQL query to get information about your application. | ||||||||
Was this post useful to you?
|
me()
instead of the ? – philfreo yesterday