Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get application id by name

Tags:

facebook

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.

like image 861
jasonlfunk Avatar asked Jan 23 '26 06:01

jasonlfunk


2 Answers

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

https://graph.facebook.com/fql?q=SELECT+app_id,namespace,category+FROM+application+WHERE+namespace=%22graffitiwall%22

like image 171
Mahfuz Avatar answered Jan 25 '26 20:01

Mahfuz


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.

like image 22
Korhan Ozturk Avatar answered Jan 25 '26 19:01

Korhan Ozturk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!