After significant voodoo, I finally got the API working. Turns out you have to set Enhanced Auth Dialog
to disabled
or Facebook ignores your publish_actions
permission. Just a head in case someone else is struggling.
However, I am fully working in the Javascript API. No server scripts.
The only way to post a rating is through the application access token. The only way to get one of them is to use the secret of the application, and this should be in javascript code for the whole world. How bad is that?
TBH I donโt care if someone substitutes the results of my games in a small pong style. Good for them, only they and their friends can see it. This is just plain fun. But what could go wrong if the secret of my application is published? Can someone capture the whole application? Or is it just bad practice and nothing can go wrong with a small mini-game?
All this is a pure javascript SDK, so it only works with user access tokens, so my first instinct is fine. But I thought I would ask ...!
source share