Facebook settings for publishing music on Timeline

I am working on an application to publish music on the Facebook timeline, but I am having problems with POST, as recommended in the document. I use OAuth 2 to successfully get the Facebook user ID and a valid session_token, but then when I send this message ...

POST https://graph.facebook.com/<user_id>/music.listens?song=<song URL>&expires_in=<seconds>&access_token=<session_token> 

I get the following error message from Facebook:

{\ "error \": {\ "message \": \ "An unexpected error occurred. Please try again later. \", \ "type \": \ "OAuthException \"

Still...

  • I ruled out invalid and expired tokens.
  • I request (and get) several permissions, including publish_checkins, publish_stream, user_likes, friends_likes and create_event.
  • I set all my meta tags according to the music documentation of the Facbook OpenGraph.

At this point, it seems that all permissions, tokens, etc. OK. Are there any application settings (possibly related to the og namespace) that need to be set? Other permissions to request?

+4
source share
3 answers

You need to be whitelisted in order to use this feature (for entering into the OG Music doc). To apply this feature as a whitelist, follow the instructions in the documents Open Graph Embedded Actions . Hope this helps!

+2
source

I am not experienced enough to give you good answers, but I can tell you how I handled my oauth errors and see if they help you.

  • One of my errors appeared after I initialized the application (javascript sdk). I tried publishing on the timeline before facebook completed the initialization and authorization process. Then I edited my post in the timeline function to wait for a response on facebook before executing.

  • My other errors were due to stupid errors, when I had not correctly defined the actions and objects in the settings of my application. I did not check the additional parameters in the action type and object settings to find the exact URL in which the objects resided.

  • Do you have your url and characters? The api seems to process and sign as parameter separators. In my URLs, I replaced & variable = with: variable = and re-changed the URL parameters to ensure that my parameters are not disabled.

Hope at least some of this has been helpful.

0
source

Did you launch the Facebook debugger? (they just changed the name and URL)

http://developers.facebook.com/tools/debug

Just paste the URL (or access token) into the field and click "Debug". He does not find all the problems, but he will point out the obvious problems and explain how to fix them.

If you do not see your problem / correct it, let us know!

0
source

All Articles