Reputation: 3425
How can i fetch data with group page alias ?
Take for example this group: http://www.facebook.com/groups/toroneradio/. Making request to https://graph.facebook.com/toroneradio gives me back:
"message": "(#803) Some of the aliases you requested do not exist: toroneradio"
Making request to the graph API with the group's id: https://graph.facebook.com/173246339390721 works OK.
It works great for pages though. Looked at FQL groups table but name is not searchable. (FQL Groups table) Also looked for some documentation and in FB bugtracking, couldn't find anything.
Is there way to get programaticly the group id from group alias or directly to get Group graph object?
Thanks, in advance!
Upvotes: 5
Views: 3661
Reputation: 409
Just figured this out! Do this: http://graph.facebook.com/search?q=[ALIAS]&type=group
Upvotes: -1
Reputation: 1
By using FQL:
SELECT id FROM profile WHERE username='groupname' AND type='group'
Upvotes: 0
Reputation: 1112
If you are doing it through your Facebook application, all you need is to grab an FB access token before you do the FB Graph API call (read up the documentation here, especially the Authorization section)
In case the easy way doesn't work (or if you feel iffy in joining the group), here's the sure-fire way to do so:
Hope that helps!
Upvotes: 5