Facebook Events, Set Category Field Missing - facebook

I am trying to set up a page-hosted event via the Facebook frontend, not via the api. I recently heard about a "category" field that should be available as of graph api v2.4. A perfect way to sort my events by topic, I thought by myself.
However, the desired option is just not there in the Facebook frontend. Every other field is available, such as Ticket-URI, Tags, etc.
Am I missing something here? Is the category field restricted to specific countries (Germany is speaking) or has the field been deprecated?
Thanks in advance for enlightening me.

Related

how to get the performers of an event through facebook api?

i want the performers of an event using facebook api. There is no field like performers or artists in events in documentation. How do i get that?
If there's no field available in the API for the data you're looking for, there's no way to fetch that data programmatically
I didn't actually realise there was a 'performers' field for Events on Facebook.com (none of the events i can see have such a field visible), perhaps examining the description field will contain the information you're looking for - https://developers.facebook.com/docs/graph-api/reference/v2.3/event

Graph API and location privacy

I'm aware that the Post Graph API object has a privacy attribute that can be specified when an app is allowing the user to create a post.
From that documentation, we can see that:
The description field may contain a comma-separated lists of valid country, city and language if a Page's post targeting by location/language is specified.
Fantastic. So where do we retrieve the current, valid country, cities and languages that are allowed to be used in that field? Guess work? An FQL table that isn't in the docs?
Anyone able to help?
I'm going to answer my own question:
A little un-intuitively, perhaps, you can grab this information from the Facebook ads api here

Facebook api - friends status updates

Very early in designing a concept and I was wondering whether it is possible using fb api to get a friends history of status updates? Or even a status update from a particular date in the past?
Hunting the documentation I am yet to see anything such as this so appreciate any guidance!
Thanks in advance
In addition to OffBySome's answer, you could use FQL, or more specifically, the stream table. This will let you query by dates, and filter more specifically, provided you have enough conditions to make the query indexable.
https://graph.facebook.com/friendID/statuses will provide you with all of a friends statuses. You can set limit querystring parameter to get more, and use "prev" and "next" elements to navigate back and forth. Try exploring on the Facebook Graph Explorer.

How would I get a list of 'friends' who have added my Facebook application?

I'm really struggling with something that should be a simple matter: Showing a user of my Facebook app a list of their friends also using the app. Is there nothing built into the APIs to allow such a common request?
The only thing I can think of to do is to get the list of the user's friends, and then get all the users from my database who are in that list, and then fetch information for each of those facebook ids. But that seems an extremely roundabout way of doing things...
The only way I've found to do this is to use FQL and a previously documented, but now undocumented field:
SELECT uid,name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=<user's uid>) AND is_app_user=1 ORDER BY name
The undocumented field is the user.is_app_user, which is listed in the old documentation wiki but not in the shiny new docs. No idea if this means it'll be removed in the future, but there doesn't seem to be any other way to get this data with the new Graph API.
Just in-case you're still using the old REST API, you can also call the friends.getAppUsers method.
You can actually use Facebook's old REST API to do this by sending a GET request to: https://api.facebook.com/method/friends.getAppUsers
If you need JSON data back, then add the parameter format=json
You need an access token to do this. See the documentation here:
http://developers.facebook.com/docs/reference/rest/friends.getAppUsers/

Facebook Graph API: user gender

The old Facebook API provided the user sex/gender as part of the default user data. Apparently the new Graph API does not provide that information, even though the documentation says that it does.
I've heard people say that you need to request special permissions to get it and other pieces of data, but I have not been successful in getting it to work.
Does anyone have an example, using the Facebook Graph API, of how to get the user's gender and/or location (city/state/country/whatever)?
You need user_location permission to get the location according to the API reference.
GET https://graph.facebook.com/USER_ID?fields=gender,location
The Graph API tool explorer is a really handy tool for checking the output.
Just FYI, location (City and state only, country is still missing) and gender have been added to the Graph API sometimes today.
I was testing an app tonight and noticed there was a couple more fields :)
I see this has an open bounty even though the question is really really old.
You can get the gender of any user using Open Graph even without any access_token.
GET https://graph.facebook.com/userid
json_decode the data
gender will be in the `gender` element of the returned array.
EDIT : user location, hometown, country etc are no more there in the /me. seems like Fb removed those, even if they are public.
Hope this helps
As far as I can tell some permissions like user_location simply aren't working at the moment. I can get email permissions and some others but for most of the user_... ones, nope. Yes they are wrong about gender as part of default data and there appears to be no permission for it either. So use the old api until the kinks in the new one get worked out.