Reputation: 5249
I need to get an application's category. In order to get that information from the graph api I need to get it's application id. However, all that I have access to is the application name that is in the URL.
I have: http://apps.facebook.com/graffitiwall
I need: https://graph.facebook.com/2439131959
Is there anyway to translate "graffittiwall" into "2439131959"?
Note: I cannot simply use the name because the graph API only looks up users and pages by name.
Upvotes: 2
Views: 3377
Reputation: 1
The FQL API provides useless functionality for querying the application table (and apprequest table for that matter). For example, I would like to know the applications my friends are using, but cannot get that information because the index on apprequest combines recipient_uid and app_id, so even trying to query the apps I use fails, as follows:
SELECT app_id FROM apprequest WHERE recipient_uid = me()
Also, the apprequest table seems faulty because this query returns no results:
SELECT app_id, message FROM apprequest WHERE app_id IN(SELECT app_id FROM application WHERE namespace = 'lucky_slots') AND recipient_uid = me()
Even though this query returns a valid app_id...
SELECT app_id FROM application WHERE namespace = 'lucky_slots'
And I have a notification from that app on my timeline
Upvotes: 0
Reputation: 467
i think facebook have change their field name canvas_name to namespace.
so now you can get this simply replace canvas_name with namespace.like
Upvotes: 8
Reputation: 11308
Unfortunately, I don't think retrieveing an application's info through application's name is possible with Facebook Graph API. You need to have the unique id of the application in order to access its basic information.
An interesting idea would be going through users' apprequests to find the ids of different application. Then you can get the category of the application from app id.
Upvotes: 1