Facebook call
Monkey Targets Forums/Flash/Facebook call
| ||
Hi all, I'm having some major difficulty getting monkey to retrieve a access_token from Facebook for a Flash game. Not sure, but I think httprequest may not support a redirect? I'm attempting to get this access_token, so I can retrieve user information using the graph.facebook.com/me API For the example, I'm using Mak httprequest example, but changed the url in get_req=New HttpRequest( "GET","http://posttestserver.com",Self ) to https://www.facebook.com/dialog/oauth?client_id=<CLIENTID>&redirect_uri=<MYREDIRECT> However, when it runs, nothing happens. I have setup crossdomains and all other calls direct to graph.facebook.com work fine. Its just this 1 command, Can anyone help? |
| ||
I've had this working quite some time ago. Is your app id that you are using for client_id all setup on facebook with no registration steps still required? Are you url-encoding your arguments? Have you tested https support in flash with getting a simple page like https://google.com? Is this the feature you are trying to use? https://developers.facebook.com/docs/reference/dialogs/oauth |
| ||
Hi Skid, yes the app id I'm using is all setup (all other calls to the graph.facebook.com are working, such as https://graph.facebook.com/oauth/access_token?client_id=<ID>&client_secret=<SECRET>&grant_type=client_credentials, but this is not the token I need) I'm assuming the url-encoding, https etc is fine, as said above, other calls are working. |
| ||
I've managed to get a workaround to this by having the server side deal with the Facebook token using PHP and passing it to the game through FlashVars. It's not ideal, and I have some concerns regarding security, but so far so good. |
| ||
I have this problem too and I don't know how to get answer for for this https://www.facebook.com/dialog/oauth?client_id=<CLIENTID>&redirect_uri=<REDIRECT> |