GRiMe2D / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Error 2500 #415

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
FAIL:
{"error":{"code":2500,"message":"An active access token must be used to query 
information about the current user.","type":"OAuthException"}}

I was using this FacebookGraphAPI.swc for my website and the login was working. 
But from today it is giving me the above error.

I have tried using the example from the source available here (FlashWebExample) 
changed the AppID but still does not work.

Original issue reported on code.google.com by yogesh.t...@gmail.com on 9 May 2012 at 8:58

GoogleCodeExporter commented 9 years ago
Same here!
Error on:
Flex 4.6
Air 3.2
iOS and Android

Original comment by klopskno...@googlemail.com on 21 May 2012 at 9:32

GoogleCodeExporter commented 9 years ago
I am having similar problems . I get so far into cityville on FB then error 
code 2500 shows up after it is about 75%loaded and I cannot go any further . 
Please help

Original comment by gonefish...@shaw.ca on 1 Jul 2012 at 2:29

GoogleCodeExporter commented 9 years ago
Any solution to this error ?

Original comment by jjain.ji...@gmail.com on 8 Sep 2012 at 5:53

GoogleCodeExporter commented 9 years ago
No solution at all. 

This is a known issue, with some bugs opened in this forum, with questions in 
all sort of developers forums and still no answer nor solution.

Seems like Facebook Sdk 1.8.1 does not work.

Original comment by jano.ale...@gmail.com on 15 Oct 2012 at 4:15

GoogleCodeExporter commented 9 years ago
This may help - Im looking for a php solution, but this article shows how 
someone did it with javascript: 

http://blog.blairvanderhoof.com/post/19248160938/solving-for-facebooks-an-active
-access-token-must-be

Original comment by dustinsm...@gmail.com on 21 Oct 2012 at 6:47

GoogleCodeExporter commented 9 years ago
To really solve problem, do it:

if (html.location.indexOf('?#') != -1) {
    params = html.location.slice(html.location.indexOf('?#')+2);
    ...

see git diff...

src/com/facebook/graph/windows/AbstractWindow.as
...

@@ -280,8 +280,9 @@ package com.facebook.graph.windows {
      */
     protected function getURLVariables():URLVariables {
       var params:String;
-
-      if (html.location.indexOf('?') != -1) {
+      if (html.location.indexOf('?#') != -1) {
+          params = html.location.slice(html.location.indexOf('?#')+2);
+      } else if (html.location.indexOf('?') != -1) {
         params = html.location.slice(html.location.indexOf('?')+1);
       } else if (html.location.indexOf('#') != -1) {
         params = html.location.slice(html.location.indexOf('#')+1);

Original comment by lag...@gmail.com on 16 Oct 2013 at 11:35

GoogleCodeExporter commented 9 years ago
did it work ?

Original comment by rine...@callystro.com on 16 Apr 2015 at 9:52