API to get all user's actions history - beatsmusic

There seems to be an api to post "play" events, but no way to retrieve user's play history. Can you suggest a way to do that?
It would be great to also get user's "love" and "ban" track events as well.

There is not a way to pull this data, right now.

Related

Get a notification when a facebook page post is made

I follow a facebook page which has some interesting posts and they post regularly. I want to write a python script that gives me a notification whenever the page posts something. Is there a way I can accomplish this in Python?
I have searched a bit, seems like graph API is the way to go. However, all the tutorials I have seen online give a way to scrape some data or get post information. I do not seem to figure out a way to detect when a new post is made.
How should I accomplish this task?
Notifications for changes or new posts can only be made with Webhooks - which are only available if you manage the Page. Scraping is not allowed on Facebook, so there is no way to get notifications for Pages you do not manage.
You could only check with the API on a regular basis, but you would need Public Page Content Access for that, and you may have a problem with API limits if there are many Page Posts or Pages you want to check.

facebook push realtime api for public page instead of manually checking

It seems weird that I can get a public page feed on facebook (posts, etc) by doing:
https://graph.facebook.com/cnn/feed?access_token=ACCESSTOKEN
but I can't get that info with their realtime api? Is it possible just to have any changes (posts created) get pushed to me with the realtime api by subscribing to a page, for example the CNN facebook page? It seems silly to just keep on having to hit the graph api every x minutes and check to see if there are any new posts since the last post id when the realtime api could just push them to me. Does anyone know a way to do this? What am I missing?
Thanks
In order to receive real time updates from the page, the app needs to be installed on the Page.
The real-time update settings doesn't let you specify a page_id so there is no way for Facebook to know which pages you want to receive updates from.
Seeing as you won't have permission to install apps to pages you don't have admin access to, you are limited to the method you are already using at the moment. The only way is to continue querying the API periodically and checking for changes.

Get Facebook Posts and Tweets to use on own app

I want to know if it is possible to get the Facebook Posts or Twitter Tweets from a user at the time that they are created/posted.
I know I can get the old posts/tweets from a certain user, but I need to get them when they are created. Otherwise I must check all the time to know if the user has posted or tweeted something.
Is there a way to accomplish this?
For twitter, see the streaming api - specifically user streams.
For facebook, there are real-time updates.
For Facebook, you can have your HTML code subscribe to the http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ on the "edge.create" which says a like happened. Then you ajax to your server that the user liked it and you store that information in your database.
For Twitter, you can subscribe to events as well. See https://dev.twitter.com/docs/intents

Using the Facebook Graph API why is it possible to read a list of videos posted to an event but not a list of photos?

As far as I can make out from reading the Facebook Graph API documentation for Events -
http://developers.facebook.com/docs/reference/api/event/
...it is possible to get a list (array) of videos that have been added to an event but NOT a list of photos. Why am I not able to get photos belonging to an event? Am I missing something here?
thanks
It's because the current implementation of the Graph API does not have the connection from Page Event to photos. The only "image" connection is the picture connection. This is probably because they haven't got around to expanding their API to handle all cases. The videoes connection is definitely out of the ordinary. It may have been placed in there early on in the development of the Graph API to hand one specific facebook partner's needs.
I can get a list of Photos by issuing a /{eventid}/photos request for an event that was created by my app, some event graph api calls are dependent on the fact that your app created the event. i.e. you can't edit an event that wasn't created with your app. I think for the photos request, you need read_stream, user_events, and maybe friend_events permission..

Access user's event invitations

I am developing an application which would allow a user to better manage their events. However, after reading Facebook's Graph API, FQL and Legacy REST API documentations I did not find a way to obtain the events to which a user has been invited but not yet responded.
Is there any possible way to achieve that?
For some reason this is not covered in the Facebook API docs, but doing a query on the /me/events/not_replied graph path does the trick.
/me/events/{declined|maybe|attending} also work as filters on the /me/events path and pretty much explain themselves. Interestingly enough those three are included in the default /me/events but the events from /me/events/not_replied are not.